Merge pull request #60 from tedyoung/master

Added reference to the tool for cleaning up unused Docker images.
This commit is contained in:
Will Sargent 2016-01-11 16:55:19 -08:00
commit 30c086e705

View file

@ -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.
@ -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 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
A repository is a *hosted* collection of tagged images that together create the file system for a container.