Docker cheatsheet: Difference between revisions

From Leechfinger
Jump to navigationJump to search
Qais (talk | contribs)
Qais (talk | contribs)
 
Line 14: Line 14:
<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" line>
$ docker prune -a
$ docker prune -a
$ docker purge --volumes -a
</syntaxhighlight>
</syntaxhighlight>
[[Category:Docker]]
[[Category:Docker]]

Latest revision as of 15:59, 7 June 2024

Listing Images

$ docker images 
REPOSITORY       TAG       IMAGE ID       CREATED       SIZE
collabora/code   latest    f247113d4e77   4 weeks ago   1.41GB

Removing Images

$ docker rmi f247113d4ea77
$ docker rmi -f $(docker images -a -q)

Clean up

$ docker prune -a
$ docker purge --volumes -a