diff --git a/docker/Makefile b/docker/Makefile index b9bdc1c..6aa1b0f 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -29,3 +29,15 @@ 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." + +delete_img: + @sudo docker system prune -a