docker/Makefile: add option to clean folder temp/image of docker.
This commit is contained in:
parent
e0a8b77db3
commit
ed1e4c0240
@ -29,3 +29,12 @@ all:
|
|||||||
|
|
||||||
shell:
|
shell:
|
||||||
docker run -w $(VOLUME) -i -a stdin -a stdout -v $(VOLUME):$(VOLUME) -t $(TAG):$(VERSION)
|
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."
|
||||||
|
Reference in New Issue
Block a user