Skip to content

Commit d63ce86

Browse files
committed
Remove --rm from docker run --rm busybox echo hello world
This commit reverts (ca7997e). The --rm tells docker to remove the container when the container exits. Without --rm docker keeps around the container, and a user can restart the container. In this chapter the reader does not restart containers, so --rm keeps tidy the storage docker keeps by deleting the stopped containers. However, adding `--rm` increases how much the user new to docker has to comprehend in the `docker run` commands. And keeping small the number of new things a reader must comprehend makes it more manageable for the reader to follow along.
1 parent 5500d06 commit d63ce86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter_09_docker.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ Follow those, and then test your installation by running:
496496

497497
[subs="specialcharacters,macros"]
498498
----
499-
$ pass:quotes[*docker run --rm busybox echo hello world*]
499+
$ pass:quotes[*docker run busybox echo hello world*]
500500
Unable to find image 'busybox:latest' locally
501501
[...]
502502
latest: Pulling from library/busybox

0 commit comments

Comments
 (0)