You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker-for-mac/index.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -88,15 +88,15 @@ docker-machine version 0.10.0, build 76ed2a6
88
88
89
89
The `nginx` webserver continues to run in the container on that port
90
90
until you stop and/or remove the container. If you want to stop the
91
-
webserver, type: `docker stop webserver` and start it again with `docker
91
+
webserver, type: `docker container stop webserver` and start it again with `docker
92
92
start webserver`. A stopped container does not show up with `docker ps`;for
93
93
that, you need to run `docker ps -a`.
94
94
95
95
To stop and remove the running container with a single command, type:
96
-
`docker rm -f webserver`. This removes the container, but not the
97
-
`nginx` image. You can list local images with `docker images`. You might
96
+
`docker container rm -f webserver`. This removes the container, but not the
97
+
`nginx` image. You can list local images with `docker image ls`. You might
98
98
want to keep some images around so that you don't need to pull them again
99
-
from Docker Hub. To remove an image you no longer need, use `docker rmi` followed by an image ID or image name. For example, `docker rmi nginx`.
99
+
from Docker Hub. To remove an image you no longer need, use `docker image rm` followed by an image ID or image name. For example, `docker image rm nginx`.
100
100
101
101
**Want more example applications?** [Get Started](/get-started/) and [Samples](/samples/) are great places to start.
Copy file name to clipboardExpand all lines: docker-for-windows/index.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -228,14 +228,14 @@ and make sure `docker` commands are working properly.
228
228
229
229
The `nginx` webserver continues to run in the container on that port
230
230
until you stop and/or remove the container. If you want to stop the
231
-
webserver, type: `docker stop webserver` and start it again with `docker
231
+
webserver, type: `docker container stop webserver` and start it again with `docker
232
232
start webserver`.
233
233
234
234
To stop and remove the running container with a single command, type:
235
-
`docker rm -f webserver`. This removes the container, but not the
236
-
`nginx` image. You can list local images with `docker images`. You might
235
+
`docker container rm -f webserver`. This removes the container, but not the
236
+
`nginx` image. You can list local images with `docker image ls`. You might
237
237
want to keep some images around so that you don't need to pull them again
238
-
from Docker Hub. To remove an image you no longer need, use `docker rmi` followed by an image ID or image name. For example, `docker rmi nginx`.
238
+
from Docker Hub. To remove an image you no longer need, use `docker image rm` followed by an image ID or image name. For example, `docker image rm nginx`.
239
239
240
240
**Want more example applications?** [Get Started](/get-started/) and [Samples](/samples) are great places to start.
0 commit comments