makefile change ffclean for prune and fprune

This commit is contained in:
hugo gogo
2022-08-30 12:01:04 +02:00
parent 1c68611a51
commit f03422ab4f

View File

@@ -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