I’m attempting to run an ephemeral command in an Incus OCI image and capture or redirect its output, similar to docker run -rm <image> <command> <args> > myfile, following these instructions to setup Apache Guacamole.
I can verify that the output is correct by running a non-ephemeral instance, then incus execing into it to run the command, at which point I get the desired output.
However, if I run incus launch docker:guacamole/guacamole --console --ephemeral -c oci.entrypoint="/opt/guacamole/bin/initdb.sh --mysql" I get one of two results:
Launching the instance
Instance name is: gorgeous-stud
To detach from the console, press: +a q
Error: Failed running forkconsole: “container is not running: "gorgeous-stud"”
Or:
Launching the instance
Instance name is: driven-soleError: Invalid PID ‘�’
Neither of which are useful ![]()
Am I doing something wrong? Or, is this even possible? I’m running Incus 6.15 by the way.