From a17a47dd7731495df6d9c814574619224b44f948 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Mon, 5 Feb 2018 09:33:47 -0800 Subject: [PATCH] Favor docker format of commands (#5914) Remove instances of: - docker rmi - docker images - docker stop - docker rm - docker create - docker exec - docker attach --- compose/install.md | 2 +- config/containers/logging/gelf.md | 2 +- config/containers/logging/json-file.md | 2 +- config/containers/logging/syslog.md | 2 +- .../thirdparty/ambassador_pattern_linking.md | 2 +- config/thirdparty/dsc.md | 4 +-- develop/develop-images/multistage-build.md | 6 ++-- develop/sdk/examples.md | 2 +- docker-for-mac/index.md | 8 ++--- docker-for-windows/index.md | 8 ++--- engine/docker-overview.md | 2 +- engine/examples/apt-cacher-ng.md | 6 ++-- engine/examples/running_ssh_service.md | 6 ++-- engine/security/apparmor.md | 6 ++-- engine/security/trust/trust_sandbox.md | 8 ++--- engine/security/userns-remap.md | 2 +- engine/swarm/configs.md | 8 ++--- engine/swarm/secrets.md | 12 +++---- engine/tutorials/networkingcontainers.md | 4 +-- .../networking/default_network/dockerlinks.md | 4 +-- engine/userguide/networking/index.md | 4 +-- .../networking/overlay-standalone-swarm.md | 2 +- .../networking/work-with-networks.md | 36 +++++++++---------- get-started/part2.md | 6 ++-- kitematic/userguide.md | 2 +- machine/overview.md | 2 +- notary/reference/server-config.md | 6 ++-- registry/deploying.md | 12 +++---- registry/index.md | 4 +-- registry/recipes/index.md | 2 +- storage/storagedriver/index.md | 4 +-- swarm/install-manual.md | 2 +- swarm/scheduler/filter.md | 4 +-- swarm/swarm_at_scale/deploy-app.md | 2 +- swarm/swarm_at_scale/deploy-infra.md | 2 +- 35 files changed, 93 insertions(+), 93 deletions(-) diff --git a/compose/install.md b/compose/install.md index 630429f1a6..fe60143a0b 100644 --- a/compose/install.md +++ b/compose/install.md @@ -216,7 +216,7 @@ Alternatively, if you're not worried about keeping them, you can remove them. Compose just creates new ones. ```bash -docker rm -f -v myapp_web_1 myapp_db_1 ... +docker container rm -f -v myapp_web_1 myapp_db_1 ... ``` ## Uninstallation diff --git a/config/containers/logging/gelf.md b/config/containers/logging/gelf.md index 9cac25cd31..55a7462830 100644 --- a/config/containers/logging/gelf.md +++ b/config/containers/logging/gelf.md @@ -61,7 +61,7 @@ To make the configuration permanent, you can configure it in `/etc/docker/daemon ``` You can set the logging driver for a specific container by setting the -`--log-driver` flag when using `docker create` or `docker run`: +`--log-driver` flag when using `docker container create` or `docker run`: ```bash $ docker run \ diff --git a/config/containers/logging/json-file.md b/config/containers/logging/json-file.md index 9d5c90ac5c..72fc2f8cec 100644 --- a/config/containers/logging/json-file.md +++ b/config/containers/logging/json-file.md @@ -37,7 +37,7 @@ option. Restart Docker for the changes to take effect for newly created containers. Existing containers do not use the new logging configuration. You can set the logging driver for a specific container by using the -`--log-driver` flag to `docker create` or `docker run`: +`--log-driver` flag to `docker container create` or `docker run`: ```bash $ docker run \ diff --git a/config/containers/logging/syslog.md b/config/containers/logging/syslog.md index b83c94d533..cc64d627f4 100644 --- a/config/containers/logging/syslog.md +++ b/config/containers/logging/syslog.md @@ -57,7 +57,7 @@ Restart Docker for the changes to take effect. > **Note**: The syslog-address supports both UDP and TCP. You can set the logging driver for a specific container by using the -`--log-driver` flag to `docker create` or `docker run`: +`--log-driver` flag to `docker container create` or `docker run`: ```bash docker run \ diff --git a/config/thirdparty/ambassador_pattern_linking.md b/config/thirdparty/ambassador_pattern_linking.md index a23a4343da..91fd169722 100644 --- a/config/thirdparty/ambassador_pattern_linking.md +++ b/config/thirdparty/ambassador_pattern_linking.md @@ -124,7 +124,7 @@ containers `env`: This environment is used by the ambassador `socat` script to expose Redis to the world (via the `-p 6379:6379` port mapping): - $ docker rm redis_ambassador + $ docker container rm redis_ambassador $ CMD="apk update && apk add socat && sh" $ docker run -t -i --link redis:redis --name redis_ambassador -p 6379:6379 alpine:3.2 sh -c "$CMD" [...] diff --git a/config/thirdparty/dsc.md b/config/thirdparty/dsc.md index b2339dd008..1b382bb587 100644 --- a/config/thirdparty/dsc.md +++ b/config/thirdparty/dsc.md @@ -90,7 +90,7 @@ file and execute configurations against multiple nodes as such: ### Images Image configuration is equivalent to running: `docker pull [image]` or -`docker rmi -f [IMAGE]`. +`docker image rm -f [IMAGE]`. Using the same steps defined above, execute `DockerClient` with the `Image` parameter and apply the configuration: @@ -124,7 +124,7 @@ docker run -d --name="[containername]" -p '[port]' -e '[env]' --link '[link]'\ or ``` -docker rm -f [containername] +docker container rm -f [containername] ``` To create or remove containers, you can use the `Container` parameter with one diff --git a/develop/develop-images/multistage-build.md b/develop/develop-images/multistage-build.md index bb7a15f53d..dcff323fc0 100644 --- a/develop/develop-images/multistage-build.md +++ b/develop/develop-images/multistage-build.md @@ -69,9 +69,9 @@ echo Building alexellis2/href-counter:build docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \ -t alexellis2/href-counter:build . -f Dockerfile.build -docker create --name extract alexellis2/href-counter:build -docker cp extract:/go/src/github.com/alexellis/href-counter/app ./app -docker rm -f extract +docker container create --name extract alexellis2/href-counter:build +docker container cp extract:/go/src/github.com/alexellis/href-counter/app ./app +docker container rm -f extract echo Building alexellis2/href-counter:latest diff --git a/develop/sdk/examples.md b/develop/sdk/examples.md index c1892f7dcd..587a69e611 100644 --- a/develop/sdk/examples.md +++ b/develop/sdk/examples.md @@ -437,7 +437,7 @@ Reticulating spline 5... ## List all images -List the images on your Engine, similar to `docker images`: +List the images on your Engine, similar to `docker image ls`: