docker/Makefile: add clean and delete_img options.
This commit is contained in:
parent
49cb586697
commit
515404302a
@ -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
|
||||
|
Reference in New Issue
Block a user