[lxc-users] lxc list --fast

Stéphane Graber stgraber at ubuntu.com
Wed Mar 16 20:48:10 UTC 2016


On Wed, Mar 16, 2016 at 09:37:11PM +0100, Tamas Papp wrote:
> hi,
> 
> tompos at ttk-mdr:~$ lxc list
> +---------------+---------+--------------------------------+------+------------+-----------+
> 
> |     NAME      |  STATE  |              IPV4              | IPV6 |    TYPE
> | SNAPSHOTS |
> +---------------+---------+--------------------------------+------+------------+-----------+
> 
> | connect       | RUNNING | 10.0.3.3 (eth0)                | | PERSISTENT |
> 9         |
> +---------------+---------+--------------------------------+------+------------+-----------+
> 
> | connect-mysql | RUNNING | 10.0.3.4 (eth0)                | | PERSISTENT |
> 9         |
> |               |         | 172.29.251.1 (ttk-mdr)         | |            |
> |
> +---------------+---------+--------------------------------+------+------------+-----------+
> 
> | proxy         | RUNNING | 10.0.3.2 (eth0)                | | PERSISTENT |
> 9         |
> +---------------+---------+--------------------------------+------+------------+-----------+
> 
> 
> 
> tompos at ttk-mdr:~$ lxc list --fast
> +---------------+---------+--------------+------------+----------+------------+
> 
> |     NAME      |  STATE  | ARCHITECTURE | CREATED AT | PROFILES |    TYPE
> |
> +---------------+---------+--------------+------------+----------+------------+
> 
> | connect       | RUNNING | x86_64       |            | default  |
> PERSISTENT |
> +---------------+---------+--------------+------------+----------+------------+
> 
> | connect-mysql | RUNNING | x86_64       |            | default  |
> PERSISTENT |
> +---------------+---------+--------------+------------+----------+------------+
> 
> | proxy         | RUNNING | x86_64       |            | default  |
> PERSISTENT |
> +---------------+---------+--------------+------------+----------+------------+
> 
> 
> 
> Why are arch and create time "important" in case of fast and why not in case
> of pure list?
> 
> 
> Thanks,
> tamas

We wanted an quivalent horizontal space usage in both modes, so added a
few more columns to --fast after removing the columns that were causing
the slowness.

If you want something else, you can just specify the list of column you
want to see.


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160316/66e28340/attachment.sig>


More information about the lxc-users mailing list