[lxc-users] Wrong Exit Code if lxc-name not found

Meno Abels meno.abels at adviser.com
Tue Jun 7 08:34:12 UTC 2016


Hello,

i have a ubuntu "Yakkety Yak" with a 2.0.1 lxc installed.

If I run:

lxc-execute -n <name> -- /bin/ls

and the name is pointing to a valid lxc-container than everything is like
expected.
But i the name is not pointing to a lxc-container than /bin/ls is executed
on the host system and the exitcode and the output is give from the host
system.
I would expect that lxc-execute returns in the case of that the name is not
correct and errorcode, and not to run the command on the host system?

thx

meno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160607/b1303c0f/attachment.html>


More information about the lxc-users mailing list