[lxc-users] Wildcard in lxd commands?

술욱 nbensa+lxcusers at gmail.com
Thu Mar 17 13:33:39 UTC 2016


2016-03-17 10:01 GMT-03:00 Janne Savikko <janne.savikko at aalto.fi>:

>
>   $ lxc list web|grep RUNNING|awk '{ print $2 }'|xargs lxc stop
>
>
This is why lxc (not lxd) is BETTER for sysadmins:

# lxc-ls --running | xargs -n1 lxc-stop -n


and docker is even better:

# docker ps -q | docker stop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160317/c87e07bd/attachment.html>


More information about the lxc-users mailing list