4

I am running a simple application container using the following command:

lxc-execute -n container_name -- sleep 100

For listing all containers we have lxc-ls command and for seeing active containers we have lxc-ls --active command. But both of them does not give any output. Whereas lxc-info -n container_name gives all the relevant information about the container. Can anybody sort out why this lxc-ls command not listing containers?

P.S. I am using ubuntu 14.04 and lxc 2.0.0.

1
  • I have this problem too.
    – tofutim
    Oct 15, 2018 at 22:59

1 Answer 1

0

Seems that you are using privileged containers, so you should use sudo with your lxc-ls commands:

sudo lxc-ls -f
3
  • 1
    I tried but it doesn't work. Can you see into this. Nov 14, 2016 at 4:13
  • It looks like there was a problem with up gradation. So please dont upgrade to avoid any kind of errors. Nov 25, 2016 at 9:39
  • Your comment does not say which upgrade u did, but I'm quite certain that to be able to list privileged containers, one only need to do "sudo lxc-ls -f", but if that does not work then u maybe have.problems somewhere else in the system,,e.g in the sudoers file etc.
    – OpenITeX
    May 4, 2017 at 21:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .