[lxc-users] lxc-execute wrong return code

Meno Abels meno.abels at adviser.com
Tue Jun 7 08:26:10 UTC 2016


Hello,

i have a ubuntu "Yakkety Yak" with the 2.0.1. If i run:

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

and the lxcname returns valid the exit code and output of /bin/ls is
returned.
If the lxcname pointing to a non existing lxc-container than /bin/ls is
executed on the calling/host system and the exit-code is from that /bin/ls.
Is this ok?
I would expect that lxc-execute returns an error code which is related to
the non existing lxcname.

Thx

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


More information about the lxc-users mailing list