README.md : Fixed remove docker anonymous images command
This commit is contained in:
@@ -46,7 +46,7 @@ docker ps -a --format='{{.ID}}' | xargs docker stop | xargs docker rm
|
||||
# Remove every volumes
|
||||
docker volume ls --format='{{.Name}}' | xargs docker volume rm
|
||||
# Remove every anonymous images (cached)
|
||||
docker images --format='{{.Repository}};{{.Tag}};{{.ID}}' | grep '<none>;<none>' | cut -d ';' -f 3 | xargs docker rmi
|
||||
docker images -a --format='{{.Repository}};{{.Tag}};{{.ID}}' | grep '<none>' | cut -d ';' -f 3 | xargs docker rmi
|
||||
# Get all used images tag in dir $PATH_ANALYSE
|
||||
find $PATH_ANALYSE -name 'Dockerfile*' | while read file; do cat $file; echo ''; done | grep -e FROM | cut -d ' ' -f 2 | sed $'s/[^[:print:]\t]//g' | sort -u | xargs -n1 docker pull
|
||||
# Calculate total docker images size
|
||||
|
||||
Reference in New Issue
Block a user