-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make make cleanup
prune volumes
#4600
Conversation
@@ -156,7 +156,8 @@ build: ## rebuild images (e.g. when changing requirements.txt) | |||
cleanup: stop ## this will remove all of the images, containers, volumes, and networks | |||
## associated with your local OnCall developer setup | |||
$(call echo_deprecation_message) | |||
docker system prune --filter label="$(DOCKER_COMPOSE_DEV_LABEL)" --all --volumes | |||
docker system prune --filter label="$(DOCKER_COMPOSE_DEV_LABEL)" --all --volumes --force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently docker system prune --volumes
only removes anonymous volumes: https://docs.docker.com/reference/cli/docker/system/prune/#options
@@ -156,7 +156,8 @@ build: ## rebuild images (e.g. when changing requirements.txt) | |||
cleanup: stop ## this will remove all of the images, containers, volumes, and networks | |||
## associated with your local OnCall developer setup | |||
$(call echo_deprecation_message) | |||
docker system prune --filter label="$(DOCKER_COMPOSE_DEV_LABEL)" --all --volumes | |||
docker system prune --filter label="$(DOCKER_COMPOSE_DEV_LABEL)" --all --volumes --force |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also adding --force
to remove the confirmation dialog
No description provided.