Merge "Clean docker containers and images"

This commit is contained in:
Jenkins 2015-02-27 11:41:43 +00:00 committed by Gerrit Code Review
commit baf24424a4

View File

@ -5,8 +5,8 @@ include $(SOURCE_DIR)/mirror/docker/base-images.mk
clean: clean-docker clean: clean-docker
clean-docker: clean-docker:
-sudo sh -c "docker ps -a | awk '/fuel/ { print \$$1; }' | xargs --no-run-if-empty docker rm -f" -sudo sh -c "docker ps -aq | xargs --no-run-if-empty docker rm -f"
-sudo sh -c "docker images | awk '/fuel/ { print \$$3; }' | xargs --no-run-if-empty docker rmi -f" -sudo sh -c "docker images | awk '/fuel|none/ { print \$$3; }' | xargs --no-run-if-empty docker rmi -f"
$(BUILD_DIR)/mirror/docker/build.done: \ $(BUILD_DIR)/mirror/docker/build.done: \
$(BUILD_DIR)/mirror/docker/base-images.done $(BUILD_DIR)/mirror/docker/base-images.done