Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Enhance the clean script
Browse files Browse the repository at this point in the history
(cherry picked from commit 4907fc9)
  • Loading branch information
niusmallnan committed Oct 17, 2018
1 parent e605f82 commit b8c5d18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/clean
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ rm -rf build dist bin images/*/build state
rm -rf ./scripts/images/openstack/dist
rm -rf ./scripts/images/vmware/dist

docker rmi $(docker images --format "{{.Repository}}:{{.Tag}}" | grep rancher) || true
docker rmi $(docker images --filter dangling=true -q) ||true
docker rmi $(docker images --format "{{.Repository}}:{{.Tag}}" | grep -E "rancher|openstack|kexec|os") || true
docker rmi $(docker images --filter dangling=true -q) || true
git clean -dxf

0 comments on commit b8c5d18

Please sign in to comment.