diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-12-12 14:40:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 14:40:29 -0500 |
commit | e2a6cde4f4e7d4a003950afc388f2cb60414c775 (patch) | |
tree | 7d2987a0d340b8f7f1feb17f15278fc5de8cb9be /playbooks/common/openshift-cluster/upgrades/docker/nuke_images.sh | |
parent | 549bd2c81da98333e229f8afb467aa909917a8a4 (diff) | |
parent | e1df3b6ba7b78255c8022468e9ad1a32255e5e59 (diff) | |
download | openshift-e2a6cde4f4e7d4a003950afc388f2cb60414c775.tar.gz openshift-e2a6cde4f4e7d4a003950afc388f2cb60414c775.tar.bz2 openshift-e2a6cde4f4e7d4a003950afc388f2cb60414c775.tar.xz openshift-e2a6cde4f4e7d4a003950afc388f2cb60414c775.zip |
Merge pull request #6407 from mgugino-upstream-stage/crt-upgrades
Refactor upgrade codepaths step 1
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/docker/nuke_images.sh')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/docker/nuke_images.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/docker/nuke_images.sh b/playbooks/common/openshift-cluster/upgrades/docker/nuke_images.sh deleted file mode 100644 index 8635eab0d..000000000 --- a/playbooks/common/openshift-cluster/upgrades/docker/nuke_images.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# Stop any running containers -running_container_ids=`docker ps -q` -if test -n "$running_container_ids" -then - docker stop $running_container_ids -fi - -# Delete all containers -container_ids=`docker ps -a -q` -if test -n "$container_ids" -then - docker rm -f -v $container_ids -fi - -# Delete all images (forcefully) -image_ids=`docker images -aq` -if test -n "$image_ids" -then - # Some layers are deleted recursively and are no longer present - # when docker goes to remove them: - docker rmi -f `docker images -aq` || true -fi - |