<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-03-17 10:01 GMT-03:00 Janne Savikko <span dir="ltr"><<a href="mailto:janne.savikko@aalto.fi" target="_blank">janne.savikko@aalto.fi</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
$ lxc list web|grep RUNNING|awk '{ print $2 }'|xargs lxc stop<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>This is why lxc (not lxd) is BETTER for sysadmins:</div><div><br></div><div># lxc-ls --running | xargs -n1 lxc-stop -n</div><div><br></div><div><br></div><div>and docker is even better:</div><div><br></div><div># docker ps -q | docker stop</div><div><br></div><div><br></div><div><br></div></div></div></div>