Remove Docker dangling images after copying new ones
This commit is contained in:
1 parent
24a4d6501e
commit
80e56d67db
1 file changed
+2
@@ -12,6 +12,8 @@ echo "Copying weave images, scripts, and certificates to hosts, and"
|
|||||||
echo " prefetch test images"
|
echo " prefetch test images"
|
||||||
for HOST in $HOSTS; do
|
for HOST in $HOSTS; do
|
||||||
docker_on $HOST load -i ../weave.tar
|
docker_on $HOST load -i ../weave.tar
|
||||||
|
DANGLING_IMAGES="$(docker_on $HOST images -q -f dangling=true)"
|
||||||
|
[ -n "$DANGLING_IMAGES" ] && docker_on $HOST rmi $DANGLING_IMAGES
|
||||||
run_on $HOST mkdir -p bin
|
run_on $HOST mkdir -p bin
|
||||||
upload_executable $HOST ../bin/docker-ns
|
upload_executable $HOST ../bin/docker-ns
|
||||||
upload_executable $HOST ../weave
|
upload_executable $HOST ../weave
|
||||||
|
|||||||
Reference in new issue
Block a user