[lxc-users] LXD: flag provided but not defined
Christian Tardif
christian.tardif at servinfo.ca
Tue Sep 27 03:47:12 UTC 2016
Hi,
I'm creating my lxd containers with ansible lxd_container module.
Working great. But once created, I need to execute a command inside the
container. Thought that I could simply type in my command as:
lxc exec mycontainer apt-get install -y puppet
You'll understand that this is a Ubuntu container, on which I need to
install puppet automatically, without having to do anything, as this is
from an ansible-playbook driven task. I also tried to type my command
manually, without any luck either.
How can I set the -y parameter (in this case) so it is not interpreted
by lxc exec command, but passed in the exec string to the container?
Tried to surround with quotes, but it does not work.
THanks,
--------------------------------------------------------------------------------
Christian Tardif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160927/128fe42e/attachment.html>
More information about the lxc-users
mailing list