On 03/05/2013 01:25 PM, Dan Kegel wrote: > short story: > > I'm on Ubuntu 12.04, using the default lxc, 0.7.5-3ubuntu67 > lxc-list seems like a nice command, but doesn't work when not run as > root... worse, it doesn't tell you it doesn't work, it just silently > doesn't show running containers. > > Is this a known issue?
Yes, it can't run as root. The new lxc-ls we have in 0.9 deals with that problem properly. lxc-ls will list the containers, which can be done as any user. Passing any extra option (to know the running ones for example) requires root and the new lxc-ls makes this clear to the user. > long story: > > > lxc-ls shows my containers, and then also shows my running ones: > > $ lxc-ls > testbot01-ubu1004 testbot01-ubu1004-temp-nobuild-unique > testbot01-ubu1204-temp-g-speak-unique > testbot01-ubu1004-temp-g-speak-unique testbot01-ubu1204 > testbot01-ubu1204-temp-nobuild-unique > testbot01-ubu1004-temp-g-speak-unique > testbot01-ubu1004-temp-nobuild-unique > testbot01-ubu1204-temp-g-speak-unique > testbot01-ubu1204-temp-nobuild-unique > > But lxc-list doesn't show my running ones: > $ lxc-list > RUNNING > > FROZEN > > STOPPED > testbot01-ubu1004 > testbot01-ubu1204 > > Running $ sh -x /usr/bin/lcx-list shows the problem: > > $ lxc-info -n testbot01-ubu1004-temp-g-speak-unique > lxc-info: failed to get state for > 'testbot01-ubu1004-temp-g-speak-unique': Permission denied > > And running as root works: > $ sudo lxc-list > RUNNING > testbot01-ubu1004-temp-g-speak-unique > testbot01-ubu1004-temp-nobuild-unique > testbot01-ubu1204-temp-g-speak-unique > testbot01-ubu1204-temp-nobuild-unique > > FROZEN > > STOPPED > testbot01-ubu1004 > testbot01-ubu1204 > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Lxc-users mailing list > Lxc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lxc-users > -- Stéphane Graber Ubuntu developer http://www.ubuntu.com
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users