mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 03:58:54 +00:00
Update cheatsheets
This commit is contained in:
33
docker-images
Normal file
33
docker-images
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker images
|
||||
|
||||
> Manage Docker images.
|
||||
> More information: <https://docs.docker.com/engine/reference/commandline/images/>.
|
||||
|
||||
- List all Docker images:
|
||||
|
||||
`docker images`
|
||||
|
||||
- List all Docker images including intermediates:
|
||||
|
||||
`docker images --all`
|
||||
|
||||
- List the output in quiet mode (only numeric IDs):
|
||||
|
||||
`docker images --quiet`
|
||||
|
||||
- List all Docker images not used by any container:
|
||||
|
||||
`docker images --filter dangling=true`
|
||||
|
||||
- List images that contain a substring in their name:
|
||||
|
||||
`docker images "{{*name*}}"`
|
||||
|
||||
- Sort images by size:
|
||||
|
||||
`docker images --format "{{.ID}} {{.Size}} {{.Repository}}:{{.Tag}}" | sort -k 2 -h`
|
||||
Reference in New Issue
Block a user