mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-17 07:30:13 +01:00
Merge pull request #60 from tedyoung/master
Added reference to the tool for cleaning up unused Docker images.
This commit is contained in:
commit
30c086e705
1 changed files with 5 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
# Docker Cheat Sheet
|
# Docker Cheat Sheet
|
||||||
|
|
||||||
NOTE: This used to be a gist that continually expanded. It's now a GitHub project because it's considerably easier for other people to edit, fix and expand on Docker using Github. Just click [README.md](https://github.com/wsargent/docker-cheat-sheet/blob/master/README.md), and then on the "writing pen" icon on the right to edit.
|
NOTE: This used to be a gist that continually expanded. It's now a GitHub project because it's considerably easier for other people to edit, fix and expand on Docker using Github. Just click [README.md](https://github.com/wsargent/docker-cheat-sheet/blob/master/README.md), and then on the "writing pen" icon on the right to edit.
|
||||||
|
|
||||||
|
|
@ -152,6 +152,10 @@ Images are just [templates for docker containers](https://docs.docker.com/introd
|
||||||
* [`docker history`](https://docs.docker.com/reference/commandline/history) shows history of image.
|
* [`docker history`](https://docs.docker.com/reference/commandline/history) shows history of image.
|
||||||
* [`docker tag`](https://docs.docker.com/reference/commandline/tag) tags an image to a name (local or registry).
|
* [`docker tag`](https://docs.docker.com/reference/commandline/tag) tags an image to a name (local or registry).
|
||||||
|
|
||||||
|
### Cleaning up
|
||||||
|
|
||||||
|
While you can use the `docker rmi` command to remove specific images, there's a tool called [docker-gc](https://github.com/spotify/docker-gc) that will clean up images that are no longer used by any containers in a safe manner.
|
||||||
|
|
||||||
## Registry & Repository
|
## Registry & Repository
|
||||||
|
|
||||||
A repository is a *hosted* collection of tagged images that together create the file system for a container.
|
A repository is a *hosted* collection of tagged images that together create the file system for a container.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue