mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
Update README.md
``` Warning: '-rm' is deprecated, it will be replaced by '--rm' soon. See usage. ```
This commit is contained in:
parent
3d279d2c17
commit
3f199ad9ad
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue