makefile change ffclean for prune and fprune
This commit is contained in:
11
Makefile
11
Makefile
@@ -84,8 +84,13 @@ rm-volumes:
|
|||||||
# remove project
|
# remove project
|
||||||
fclean: clean rm-volumes
|
fclean: clean rm-volumes
|
||||||
|
|
||||||
# remove all dockers
|
# remove all containers and related files that are not runnings
|
||||||
ffclean:
|
prune:
|
||||||
|
sudo docker system prune -af --volumes
|
||||||
|
/bin/rm -rf $(VOLUMES_D)
|
||||||
|
|
||||||
|
# remove all containers and related files
|
||||||
|
fprune:
|
||||||
sudo docker stop $(sudo docker ps -q)
|
sudo docker stop $(sudo docker ps -q)
|
||||||
sudo docker system prune -af --volumes
|
sudo docker system prune -af --volumes
|
||||||
/bin/rm -rf $(VOLUMES_D)
|
/bin/rm -rf $(VOLUMES_D)
|
||||||
@@ -94,5 +99,5 @@ re: fclean all
|
|||||||
|
|
||||||
rre: ffclean all
|
rre: ffclean all
|
||||||
|
|
||||||
.PHONY : all build up $(VOLUMES_D) list rm-images stop rm-containers clean rm-volumes fclean ffclean re rre
|
.PHONY : all build up $(VOLUMES_D) list rm-images stop rm-containers clean rm-volumes fclean prune fprune re rre
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user