From 0dbd5bb2a8e516c3b2c09273b3c9f3a10b5618c4 Mon Sep 17 00:00:00 2001 From: bdevloed Date: Fri, 31 Jul 2015 16:55:11 +0200 Subject: [PATCH] Update docker.md, simplified kill command docker ps -a | awk '{print $1}' could be replaced with docker ps -aq --- docs/getting-started-guides/docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started-guides/docker.md b/docs/getting-started-guides/docker.md index 07aac0a461a..e22250da153 100644 --- a/docs/getting-started-guides/docker.md +++ b/docs/getting-started-guides/docker.md @@ -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.