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

resurrect --all flag for cp to target oneoff container #12229

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Oct 23, 2024

What I did
--all flag was deprecated just after we introduced cp command and isn't actually implemented in the code (no effect) so I assume it's safe to reuse it for another purpose. I suggest we align with other commands and make it an opt-in flag to include one-off (compose run) containers. Doing so, we can implement docker compose cp to target one-off containers as requested on #10384

Related issue
closes #10384

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

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof requested review from a team, glours and jhrotko and removed request for a team October 24, 2024 19:52
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

@ndeloof ndeloof merged commit 7c46beb into docker:main Oct 25, 2024
30 checks passed
@ndeloof ndeloof deleted the cp_one_off branch October 25, 2024 14:59
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.

[BUG] docker compose cp doesn't work for services executed via docker compose run
2 participants