I have used lxc version 1.0.2-0ubuntu2 in ubuntu 14.04 beta (kernel version
3.13.0-23-generic)

Also for information, in version 0.9.0-0ubuntu3.7 lxc-start works fine.


On Mon, Apr 7, 2014 at 12:07 AM, Andrey Khozov <[email protected]>wrote:

> Hello.
>
> I use lxc-start to run commands inside the container and look at the
> return code of the command. I always get a value of 0 or 255, even if the
> return code other. Example:
>
> user@ubuntu:~$ sudo lxc-start -n j1 -- bash -c 'exit 0'
> user@ubuntu:~$ echo $?
> 0
> user@ubuntu:~$ sudo lxc-start -n j1 -- bash -c 'exit 3'
> user@ubuntu:~$ echo $?
> 255
> user@ubuntu:~$
>
>
> There is an opportunity get the correct exit code when using lxc-start?
>
> --
> Andrey Khozov
>



-- 
Andrey Khozov
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to