mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-16 15:10:12 +01:00
Add prune and df commands as tops
This commit is contained in:
parent
9e7cdaa49b
commit
9235f35ea9
1 changed files with 24 additions and 0 deletions
24
README.md
24
README.md
|
|
@ -565,6 +565,30 @@ There is an AppArmor policy generator called [bane](https://github.com/jfrazelle
|
|||
Sources:
|
||||
|
||||
* [15 Docker Tips in 5 minutes](http://sssslide.com/speakerdeck.com/bmorearty/15-docker-tips-in-5-minutes)
|
||||
* [CodeFresh Everyday Hacks Docker](https://codefresh.io/blog/everyday-hacks-docker/)
|
||||
|
||||
### Prune
|
||||
|
||||
The new [Data Management Commands](https://github.com/docker/docker/pull/26108) have landed as of Docker 1.13:
|
||||
|
||||
* `docker system prune`
|
||||
* `docker volume prune`
|
||||
* `docker network prune`
|
||||
* `docker container prune`
|
||||
* `docker image prune`
|
||||
|
||||
# df
|
||||
|
||||
`docker system df` presents a summary of the space currently used by different docker objects.
|
||||
|
||||
### Heredoc Docker Container
|
||||
|
||||
```
|
||||
docker build -t htop - << EOF
|
||||
FROM alpine
|
||||
RUN apk --no-cache add htop
|
||||
EOF
|
||||
```
|
||||
|
||||
### Last Ids
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue