Skip to content

Conversation

@glours
Copy link
Contributor

@glours glours commented Jun 23, 2025

What I did
Remove services passed as parameters of the docker compose run command from being created during the dependencies starting process

Related issue
Fix #12965 #12966

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

@glours glours requested a review from a team as a code owner June 23, 2025 20:05
@glours glours requested review from ndeloof and rumpl June 23, 2025 20:05
@glours glours self-assigned this Jun 23, 2025
@glours glours force-pushed the fix-run-rm-issue branch from 5029bba to 10e0732 Compare June 23, 2025 20:07
@glours glours force-pushed the fix-run-rm-issue branch 2 times, most recently from 8c6f916 to 85a281c Compare June 24, 2025 05:51

res = c.RunDockerCmd(t, "stop", containerID)
res.Assert(t, icmd.Success)
res = c.RunDockerCmd(t, "ps", "--all", "--filter", "name=run-test-nginx")
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: use --format '{{.Names}}' in command so output only shows container(s) name

@glours glours force-pushed the fix-run-rm-issue branch from 85a281c to f9a6089 Compare June 24, 2025 08:02
@glours glours force-pushed the fix-run-rm-issue branch from f9a6089 to 580be17 Compare June 24, 2025 08:40
@glours glours changed the title don't create from run command during dependencies creation process don't create services passed as parameters of run command during dependencies creation process Jun 24, 2025
@glours glours merged commit b3207c4 into docker:main Jun 24, 2025
26 checks passed
@ndeloof ndeloof deleted the fix-run-rm-issue branch June 24, 2025 10:30
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Jun 25, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker/compose](https://github.com/docker/compose) | patch | `v2.37.2` -> `v2.37.3` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>docker/compose (docker/compose)</summary>

### [`v2.37.3`](https://github.com/docker/compose/releases/tag/v2.37.3)

[Compare Source](docker/compose@v2.37.2...v2.37.3)

#### What's Changed

##### ✨ Improvements

- add support for cache\_to with bake by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12959

##### 🐛 Fixes

- fix bake intergation by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12960
- don't create services passed as parameters of run command during dependencies creation process by [@&#8203;glours](https://github.com/glours) in docker/compose#12968
- inject secrets/config just before container is started by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12970
- propagate target docker host set by --host to Bake by [@&#8203;ndeloof](https://github.com/ndeloof) in docker/compose#12961

##### 🔧  Internal

- pkg/compose: remove uses of ExecOptions.Detach by [@&#8203;thaJeztah](https://github.com/thaJeztah) in docker/compose#12950

##### ⚙️ Dependencies

- build(deps): bump github.com/moby/buildkit from 0.23.0 to 0.23.1 by [@&#8203;dependabot](https://github.com/dependabot) in docker/compose#12964

**Full Changelog**: docker/compose@v2.37.2...v2.37.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
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] compose run --rm does not remove the container

2 participants