Skip to content

don't remove external volumes/networks#9281

Merged
glours merged 1 commit intodocker:v2from
ndeloof:down_volume_external
Mar 14, 2022
Merged

don't remove external volumes/networks#9281
glours merged 1 commit intodocker:v2from
ndeloof:down_volume_external

Conversation

@ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Mar 14, 2022

What I did
fix down -v so we do no remove external volumes and networks
this also uses the project (when passed by command line) as source for volumes/network to be removed, vs the actual state, so that one can enforce down will only remove the resources listed in the compose.yaml file

Related issue
closes #9172

(not mandatory) A picture of a cute animal, if possible in relation with what you did

@ndeloof ndeloof requested a review from glours March 14, 2022 10:07
@ndeloof ndeloof force-pushed the down_volume_external branch 12 times, most recently from ee67ac9 to a3006e2 Compare March 14, 2022 14:14
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof force-pushed the down_volume_external branch from a3006e2 to e7f5459 Compare March 14, 2022 14:25
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker-compose v2 down -v does not respect "external" declaration

2 participants