Public bug reported: William and Robert developed the lxc-start-ephemeral script to support a use case that the version in the package no longer supports, to the best of our knowledge.
Specifically, we need to be able to programmatically start ephemeral instances, send them a command and get the results, and then shut down the instance. The packaged version instead starts an instance, directs users to use lxc-console, and then starts lxc-monitor to wait for the instance to close. We may have missed a way to use the existing approach for what we need, and are happy to talk about it. If not, we believe that a nice solution would be to allow an option to lxc-start-ephemeral for a command that, if provided, is run instead of lxc-monitor. This command would be able to have a placeholder string; before the command is run, the placeholder would be replaced by the name of the ephemeral container. The command would inherit lxc-start- ephemeral's stdout and stderr. After the command finished, lxc-start- ephemeral would proceed to shut off the instance, just as it does now after lxc-monitor. Thank you ** Affects: lxc (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/914169 Title: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/914169/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs