docker/Makefile: add option to clean folder temp/image of docker.

This commit is contained in:
Pedro Gonçalves 2017-06-28 13:37:15 +01:00
parent e0a8b77db3
commit ed1e4c0240
1 changed files with 9 additions and 0 deletions

View File

@ -29,3 +29,12 @@ all:
shell:
docker run -w $(VOLUME) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
clean:
@echo "* Stopping docker service..."
@sudo systemctl stop docker
@echo "* Cleaning docker service..."
@sudo rm -rf /var/lib/docker
@echo "* Starting docker service..."
@sudo systemctl start docker
@echo "* Done."