.PHONY: clean-docker
# This module downloads ubuntu installation images.
include $(SOURCE_DIR)/mirror/docker/base-images.mk

clean: 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 images | awk '/fuel/ { print \$$3; }' | xargs --no-run-if-empty docker rmi -f"

$(BUILD_DIR)/mirror/docker/build.done: \
		$(BUILD_DIR)/mirror/docker/base-images.done
	$(ACTION.TOUCH)

.PHONY: clean-docker
# This module downloads ubuntu installation images.
include $(SOURCE_DIR)/mirror/docker/base-images.mk

clean: clean-docker

clean-docker:
	-sudo sh -c "docker ps -aq | xargs --no-run-if-empty docker rm -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/base-images.done
	$(ACTION.TOUCH)

Clean docker containers and images
Clean docker containers and images

Clean:
 * all containers
 * all fuel|<none> images

Change-Id: If3b4f543447f39e64e51c143306a9851f1b4bfef
Closes-bug: #1423482
