makefile change ffclean for prune and fprune
This commit is contained in:
11
Makefile
11
Makefile
@@ -84,8 +84,13 @@ rm-volumes:
|
||||
# remove project
|
||||
fclean: clean rm-volumes
|
||||
|
||||
# remove all dockers
|
||||
ffclean:
|
||||
# remove all containers and related files that are not runnings
|
||||
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 system prune -af --volumes
|
||||
/bin/rm -rf $(VOLUMES_D)
|
||||
@@ -94,5 +99,5 @@ re: fclean 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