Skip to content

Commit

Permalink
Merge pull request #73 from gluckzhang/adjust-make-prune
Browse files Browse the repository at this point in the history
make prune only removes this project's volumes
  • Loading branch information
sherifabdlnaby authored Apr 29, 2022
2 parents 01d401d + 6471789 commit 6549c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ logs: ## Tail all logs with -n 1000.
images: ## Show all Images of ELK and all its extra components.
@docker-compose $(COMPOSE_ALL_FILES) images ${ELK_ALL_SERVICES}

prune: ## Remove ELK Containers and Delete Volume Data
prune: ## Remove ELK Containers and Delete ELK-related Volume Data (the elastic_elasticsearch-data volume)
@make stop && make rm
@docker volume prune -f
@docker volume prune -f --filter label=com.docker.compose.project=elastic

help: ## Show this help.
@echo "Make Application Docker Images and Containers using Docker-Compose files in 'docker' Dir."
Expand Down

0 comments on commit 6549c65

Please sign in to comment.