Jump to content

Docker (software): Difference between revisions

Line 48: Line 48:


===Images===
===Images===
For the most part, you don't need to worry about images as <code>docker run</code> and <code>docker-compose</code> will download and build images for you as needed.
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# List downloaded images.
docker image ls
# Prune unused images.
docker image prune -a
</syntaxhighlight>
</syntaxhighlight>
;Notes
* Pruning with <code>docker system prune</code> will also delete images.
* Omitting <code>-a</code> will only prune dangling (untagged) images.


===Containers===
===Containers===