add dry-run support to down command #10444
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I did
Add dry-run support for
down
command> docker compose -f /Users/glours/sources/awesome-compose/nginx-golang-mysql/compose.yaml alpha dry-run -- down --rmi all --remove-orphans -v [+] Running 10/0 ✔ DRY-RUN MODE - Container nginx-golang-mysql-proxy-1 Removed 0.0s ✔ DRY-RUN MODE - Container nginx-golang-mysql-proxy-run-a63195491410 Removed 0.0s ✔ DRY-RUN MODE - Container nginx-golang-mysql-proxy-run-7c913f2c92a3 Removed 0.0s ✔ DRY-RUN MODE - Container nginx-golang-mysql-backend-1 Removed 0.0s ✔ DRY-RUN MODE - Container nginx-golang-mysql-db-1 Removed 0.0s ✔ DRY-RUN MODE - Volume nginx-golang-mysql_db-data Removed 0.0s ✔ DRY-RUN MODE - Image mariadb:10-focal Removed 0.0s ✔ DRY-RUN MODE - Image nginx-golang-mysql-backend:latest Removed 0.0s ✔ DRY-RUN MODE - Image nginx:latest Removed 0.0s ✔ DRY-RUN MODE - Network nginx-golang-mysql_default Removed 0.0s
Related issue
https://docker.atlassian.net/browse/ENV-60
(not mandatory) A picture of a cute animal, if possible in relation to what you did