2021-04-12 18:55:29 +01:00
|
|
|
# docker image
|
|
|
|
|
|
|
|
> Manage Docker images.
|
2023-11-23 13:55:03 +00:00
|
|
|
> See also: `docker build`, `docker import`, and `docker pull`.
|
2021-04-12 18:55:29 +01:00
|
|
|
> More information: <https://docs.docker.com/engine/reference/commandline/image/>.
|
|
|
|
|
|
|
|
- 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 --all`
|
|
|
|
|
|
|
|
- Show the history of a local Docker image:
|
|
|
|
|
|
|
|
`docker image history {{image}}`
|