Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas committed May 8, 2016
1 parent cfa2de3 commit 55a9365
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,42 @@ heroku rollback --app dbg-contacts <id>
docker run ubuntu /bin/echo 'Hello world'
```

**Check all containers, including stopped ones**
```
docker ps -a
```

**Rerun and remove the container**
```
docker start -a <id>
docker rm <id>
```

**List available images**
```
docker images
```

**Remove the ubuntu image**
```
docker rmi -f ubuntu
```

**Rerun and the container**
```
docker run ubuntu /bin/echo 'Hello world'
```

**Remove all images**
```
docker rmi -f $(docker images -q)
```

**Rerun and the container**
```
docker run ubuntu /bin/echo 'Hello world'
```

**Run bash**
```
docker run -t -i ubuntu /bin/bash
Expand Down

0 comments on commit 55a9365

Please sign in to comment.