[lxc-users] lxc 2.0.4 lxc-ls show nothing and lxc-attach fail
Fajar A. Nugraha
list at fajar.net
Tue Sep 20 07:24:59 UTC 2016
On Tue, Sep 20, 2016 at 8:06 AM, John Y. <wjseven1707 at gmail.com> wrote:
> I run a container as:
> lxc-start -n test2 -f /root/test.cfg
>
> I can get info by lxc-info
> #lxc-info -n test2
> Name: test2
> State: RUNNING
> PID: 15615
> CPU use: 1.62 seconds
> BlkIO use: 8.00 KiB
> Memory use: 19.91 MiB
> KMem use: 0 bytes
>
> but lxc-ls show nothing:
> #lxc-ls
> #lxc-ls --active
> #lxc-ls --running
>
> lxc-attach fail:
> lxc-attach -n test2
> Error: container test2 is not defined
>
> Any idea?
>
>
More info would be helpful, like
- what distro/version
- is the lxc package distro-provided, or self-compiled
- do you have previous lxc installation on that server
A common cause for this kind of behavior in other software, is that if you
mix distro and compiled packages, or some old version still remain (e.g. in
/usr/local/bin) from older installation.
--
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160920/51151579/attachment.html>
More information about the lxc-users
mailing list