Skip to content

down: Reject all arguments#9158

Merged
glours merged 1 commit intodocker:v2from
Jille:compose-down-noargs
May 2, 2022
Merged

down: Reject all arguments#9158
glours merged 1 commit intodocker:v2from
Jille:compose-down-noargs

Conversation

@Jille
Copy link
Contributor

@Jille Jille commented Feb 9, 2022

The down command silently ignored all arguments, which might cause
confusion and/or outages if someone expects docker-compose down $service to be the opposite of docker-compose up $service, rather
than turning down everything.

What I did
Make docker-compose down reject any given arguments.

Related issue
closes #9151

@Jille Jille force-pushed the compose-down-noargs branch from 522a5cf to d2f01a6 Compare February 10, 2022 08:58
@Jille
Copy link
Contributor Author

Jille commented May 2, 2022

@ndeloof can I bother you to take a quick look at this or assign it to someone?

@ndeloof ndeloof enabled auto-merge (rebase) May 2, 2022 12:37
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

@glours
Copy link
Contributor

glours commented May 2, 2022

@Jille I don't know why the CI workflow din't start, but can you just push force on your branch to trigger the CI again?

The down command silently ignored all arguments, which might cause
confusion and/or outages if someone expects `docker-compose down
$service` to be the opposite of `docker-compose up $service`, rather
than turning down everything.

Signed-off-by: Jille Timmermans <jille@quis.cx>
auto-merge was automatically disabled May 2, 2022 13:28

Head branch was pushed to by a user without write access

@Jille Jille force-pushed the compose-down-noargs branch from d2f01a6 to 147c2d8 Compare May 2, 2022 13:28
@Jille
Copy link
Contributor Author

Jille commented May 2, 2022

$ git pull
$ git rebase origin/v2
$ git push -f Jille

Note that the push has disabled auto-merge.

@glours glours enabled auto-merge May 2, 2022 13:33
@glours
Copy link
Contributor

glours commented May 2, 2022

No worries, that's fine now, I got the option to allow the CI build and re-added the auto-merge option 👍

@glours glours merged commit 028cb4d into docker:v2 May 2, 2022
@Jille Jille deleted the compose-down-noargs branch May 2, 2022 13:39
piroux added a commit to piroux/docker-compose that referenced this pull request Jul 16, 2022
piroux added a commit to piroux/docker-compose that referenced this pull request Jul 16, 2022
…version

Based on docker#9158 which enforced it for the down command
piroux added a commit to piroux/docker-compose that referenced this pull request Jul 16, 2022
…version

Based on docker#9158 which enforced it for the down command

Signed-off-by: piroux <pierre.roux01@gmail.com>
piroux added a commit to piroux/docker-compose that referenced this pull request Jul 28, 2022
…version

Based on docker#9158 which enforced it for the down command

Signed-off-by: piroux <pierre.roux01@gmail.com>
dpeng817 added a commit to dagster-io/dagster that referenced this pull request Oct 19, 2022
…ture (#10042)

### Summary & Motivation
A recent change to docker-compose down errors on additional arguments that were previously ignored (docker/compose#9158). We had our docker-compose down setup to exactly mirror docker-compose up, which is incorrect in the exact way that it seems like this PR seeks to avoid confusion, so this PR gets rid of that parity in the command.

### How I Tested These Changes
Previously got errors on local spindown when using docker-compose, this fixes.
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 down silently ignores arguments

3 participants