[lxc-users] Help with LXC Exec
Robert Sherwood
robert.sherwood at gmail.com
Sun Dec 22 13:05:14 UTC 2019
Does that command work if you run it on the command line? It looks to me as
though it is passing the command 'mode=noninteractive' to the container.
That command doesn't exist. Try it without the mode part
On Sat, Dec 21, 2019, 10:05 AM Andrey Repin <anrdaemon at yandex.ru> wrote:
> Greetings, Bryan Christ!
>
> > I'm trying to use an ansible plugin that controls LXC containers and it's
> > ultimately failing because "lxc exec" fails. This was a Ubuntu 16.04
> system
> > that was upgraded to 18.04 if that matters. The problem looks like this:
>
>
> > root at ironkite:/usr/bin# /usr/bin/lxc exec centos6-64-consolecraze
> --mode=non-interactive -- hostname
> > Error: not found
>
> "lxc" is part of LXD, the LXC orchestration system built on top of LXC
> itself.
>
> > As an observation, if I use lxc-attach to run commands it works just
> fine.
>
> On the contrary, "lxc-attach" is part of LXC itself.
>
>
> --
> With best regards,
> Andrey Repin
> Saturday, December 21, 2019 17:54:31
>
> Sorry for my terrible english...
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20191222/9b098ad7/attachment.html>
More information about the lxc-users
mailing list