[lxc-users] Feature request: raw lxc utilities output format and operations with multiplie containers?
Andriy Tovstik
andriy.tovstik at gmail.com
Thu Nov 10 10:17:47 UTC 2016
Hi all!
During LXD learning i encountered with lack of some features.
The first one is "raw" output format of lxc list. Currently lxc list
supports two formats: table and json. Unfortunately both formats are
unusable for scripting.
It is very difficult to pass to script output likes:
# lxc list --format table -c n
+------------+
| NAME |
+------------+
| mysql-rep1 |
+------------+
| mysql-rep2 |
+------------+
| mysql-rep3 |
+------------+
When i try to use json format i see that useful fields like container name
are missing in output. May be it will be useful to implement feature like:
# lxc list --format raw -c n --no-header
mysql-rep1
mysql-rep2
mysql-rep3
The second feature looks useful is ability run commands on multiplie
containers simultaneously. For example:
# lxc exec web-node* -- apt update
What do you think about it?
--
WBR, Andriy Tovstik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20161110/da1420c3/attachment.html>
More information about the lxc-users
mailing list