<div dir="auto">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</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 21, 2019, 10:05 AM Andrey Repin <<a href="mailto:anrdaemon@yandex.ru">anrdaemon@yandex.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings, Bryan Christ!<br>
<br>
> I'm trying to use an ansible plugin that controls LXC containers and it's<br>
> ultimately failing because "lxc exec" fails.  This was a Ubuntu 16.04 system<br>
> that was upgraded to 18.04 if that matters.  The problem looks like this:<br>
<br>
<br>
> root@ironkite:/usr/bin# /usr/bin/lxc exec centos6-64-consolecraze --mode=non-interactive -- hostname<br>
> Error: not found<br>
<br>
"lxc" is part of LXD, the LXC orchestration system built on top of LXC itself.<br>
<br>
> As an observation, if I use lxc-attach to run commands it works just fine.<br>
<br>
On the contrary, "lxc-attach" is part of LXC itself.<br>
<br>
<br>
-- <br>
With best regards,<br>
Andrey Repin<br>
Saturday, December 21, 2019 17:54:31<br>
<br>
Sorry for my terrible english...<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank" rel="noreferrer">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</blockquote></div>