2016-03-17 10:01 GMT-03:00 Janne Savikko <[email protected]>:

>
>   $ 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
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to