Skip to content
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

Merged
merged 1 commit into from
Jun 27, 2024
Merged

make make cleanup prune volumes #4600

merged 1 commit into from
Jun 27, 2024

Conversation

vadimkerr
Copy link
Member

No description provided.

@vadimkerr vadimkerr added pr:no public docs Added to a PR that does not require public documentation updates release:ignore PR will not be added to release notes labels Jun 27, 2024
@vadimkerr vadimkerr requested a review from a team as a code owner June 27, 2024 13:49
@@ -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
Copy link
Member Author

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
Copy link
Member Author

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

@vadimkerr vadimkerr added this pull request to the merge queue Jun 27, 2024
Merged via the queue into dev with commit 7980382 Jun 27, 2024
27 checks passed
@vadimkerr vadimkerr deleted the vadimkerr/makefile-cleanup branch June 27, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates release:ignore PR will not be added to release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants