Update README.md

```
Warning: '-rm' is deprecated, it will be replaced by '--rm' soon. See usage.
```
This commit is contained in:
Nelson Chen 2014-09-05 16:30:32 -07:00
parent 3d279d2c17
commit 3f199ad9ad

View file

@ -106,7 +106,7 @@ Some common misconceptions it's worth correcting:
If you want to run and then interact with a container, `docker start` then `docker attach` to get in (or, as of 0.9, `nsenter`). If you want to run and then interact with a container, `docker start` then `docker attach` to get in (or, as of 0.9, `nsenter`).
If you want a transient container, `docker run -rm` will remove the container after it stops. If you want a transient container, `docker run --rm` will remove the container after it stops.
If you want to poke around in an image, `docker run -t -i <myimage> <myshell>` to open a tty. If you want to poke around in an image, `docker run -t -i <myimage> <myshell>` to open a tty.
@ -341,7 +341,7 @@ docker inspect -f '{{ .NetworkSettings.IPAddress }}' <container_name>
### Get Environment Settings ### Get Environment Settings
``` ```
docker run -rm ubuntu env docker run --rm ubuntu env
``` ```
### Delete old containers ### Delete old containers