Comment 2 for bug 918327

Revision history for this message
Scott Moser (smoser) wrote : Re: lxc-start exits success on failure when non-root

Another (likely related) issue, after using sudo to start the container, observe:

$ lxc-ls
lv1
$ sudo lxc-start -n lv1 -d
$ lxc-ls
lv1
/usr/bin/lxc-ls: line 35: cd: /sys/fs/cgroup/cpuset///lxc: Permission denied
ls: cannot access lv1: No such file or directory
$ sudo lxc-ls
lv1
lv1
$ sudo lxc-list
RUNNING
  lv1

STOPPED

So, as it is now after starting the container 'sudo lxxc-ls' shows 2 containers, but 'lxc-ls' (without sudo) shows annoying messages.