1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/docker-image.md

26 lines
527 B
Markdown
Raw Normal View History

2021-04-12 18:55:29 +01:00
# docker image
> Manage Docker images.
> See also: `docker build`, `docker import`, and `docker pull`.
> More information: <https://docs.docker.com/reference/cli/docker/image/>.
2021-04-12 18:55:29 +01:00
- List local Docker images:
`docker image ls`
- Delete unused local Docker images:
`docker image prune`
- Delete all unused images (not just those without a tag):
`docker image prune {{[-a|--all]}}`
2021-04-12 18:55:29 +01:00
- Show the history of a local Docker image:
`docker image history {{image}}`
- View documentation for `docker image rm`:
`tldr docker rmi`