Update docker.md, simplified kill command

docker ps -a | awk '{print $1}' could be replaced with docker ps -aq
This commit is contained in:
bdevloed 2015-07-31 16:55:11 +02:00
parent acc276831f
commit 0dbd5bb2a8

View File

@ -147,7 +147,7 @@ Note that you will need run this curl command on your boot2docker VM if you are
Many of these containers run under the management of the `kubelet` binary, which attempts to keep containers running, even if they fail. So, in order to turn down
the cluster, you need to first kill the kubelet container, and then any other containers.
You may use `docker ps -a | awk '{print $1}' | xargs docker kill`, note this removes _all_ containers running under Docker, so use with caution.
You may use `docker kill $(docker ps -aq)`, note this removes _all_ containers running under Docker, so use with caution.
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->