1# see images available on your hosts
2docker image list
3
4# equal to above
5docker images
6REPOSITORY TAG IMAGE ID CREATED SIZE
7httpd latest 6fa26f20557b 45 hours ago 164MB
8hello-world latest 75280d40a50b 4 months ago 1.69kB
9
10# give sha
11docker images --no-trunc=true
12
13# delete unused images
14docker rmi $(docker images -q)
15# delete images without tags
16docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
Comments