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 <anrdae...@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@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@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to