Delete images by id instead of tag in docker-refresh (#10957)

This commit is contained in:
Alan Rominger 2021-08-27 11:51:58 -04:00 committed by GitHub
parent 6001bd5446
commit 711e5e09ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -537,7 +537,7 @@ docker-compose-build:
docker-clean:
$(foreach container_id,$(shell docker ps -f name=tools_awx -aq),docker stop $(container_id); docker rm -f $(container_id);)
docker images | grep "awx_devel" | awk '{print $$1 ":" $$2}' | xargs docker rmi
docker images | grep "awx_devel" | awk '{print $$3}' | xargs docker rmi
docker-clean-volumes: docker-compose-clean docker-compose-container-group-clean
docker volume rm tools_awx_db