mirror of https://github.com/docker/docs.git
Update centos.md
I've added in the '--rm' argument to the 'script method' and to the 'add your user to docker group' examples to match the first instruction. Purely a consistency thing, and so new users can appreciate not having a few hello-world containers spawned. Ta.
This commit is contained in:
parent
3701afc28b
commit
345d1b609d
|
@ -154,7 +154,7 @@ learn how to [customize your Systemd Docker daemon options](../../admin/systemd.
|
|||
6. Verify `docker` is installed correctly by running a test image in a container.
|
||||
|
||||
```bash
|
||||
$ sudo docker run hello-world
|
||||
$ sudo docker run --rm hello-world
|
||||
```
|
||||
|
||||
If you need to add an HTTP Proxy, set a different directory or partition for the
|
||||
|
@ -198,7 +198,7 @@ To create the `docker` group and add your user:
|
|||
5. Verify that your user is in the docker group by running `docker` without `sudo`.
|
||||
|
||||
```bash
|
||||
$ docker run hello-world
|
||||
$ docker run --rm hello-world
|
||||
```
|
||||
|
||||
## Start the docker daemon at boot
|
||||
|
|
Loading…
Reference in New Issue