[lxc-users] strange behaviour of grep on lxc-info

Dwight Engen dwight.engen at oracle.com
Tue Sep 9 13:52:14 UTC 2014


On Mon, 08 Sep 2014 23:27:14 +0200
Tamas Papp <tompos at martos.bme.hu> wrote:

> 
> hi All,
> 
> # lxc-info -n jay|grep RU
> State:          RUNNING
> State:          RUNNING
> 
> # lxc-info -n jay|grep ve
> Link:           veth2O2K6R
> 
> # lxc-info -n jay|grep jay
> Name:           jay
> Name:           jay
> Name:           jay
> 
> # lxc-info -n jay|grep IP
> IP:             10.0.0.55
> IP:             10.0.0.55
> IP:             10.0.0.55
> IP:             10.0.0.55
> IP:             10.0.0.55
> IP:             10.0.0.55
> IP:             10.0.0.55
> IP:             10.0.0.55
> IP:             10.0.0.55
> 
> 
> 
> 
> Does anybody have an idea?:)

Does your lxc contain commit e2426f0bb0a2e94593134fdec0aca95fee53eef0
(fix lxc-info printing duplicate lines)?

> 
> 
> 10x
> tamas
> 
> 
> ps.: Is there a nicer way to check the state of container? Something
> like:
> 
> # lxc-info -n t1 --state RUNNING
> STOPPED
> 
> # echo $?
> 1
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list