[lxc-users] lxc-ls show containers which does not exist with lxc 1.0.6

Fajar A. Nugraha list at fajar.net
Tue Sep 20 07:21:11 UTC 2016


On Tue, Sep 20, 2016 at 10:51 AM, John Y. <wjseven1707 at gmail.com> wrote:

> before craete a container:
>
> #lxc-ls
> show nothing
>


> 1. Why there are some lxc still in lxc-ls when I use `lxc-stop -n test2
> -k` (or use `kill -9 pid`) to stop it?2. How to remove these unused lxc
> info?
>
>
Short version: switch to lxc 2, or at least anything that supports "-f"
switch :)

"-f" (or --fancy) shows the container state as well, whether is running
(which is what appens after lxc-start) or stopped (which is what happens
after lxc-stop).

-- 
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160920/3c0d21b8/attachment.html>


More information about the lxc-users mailing list