mirror of
https://github.com/docker/compose.git
synced 2026-11-18 14:13:49 +00:00
A project narrowed with WithSelectedServices (watch's rebuild, which this PR moves to a narrowed Create phase, and `up`/`scale --no-deps`) keeps every network and volume of the model but moves the services left out to DisabledServices. The reconciler looked for the consumers of a resource in project.Services only, so a drifted network or volume used by a disabled service looked unused: the plan removed it without detaching that service's container, and the removal failed with "in use". For a volume, the user was first asked to confirm a data-destroying recreation that could not succeed. A same-name drifted network or volume that a disabled service still holds through a live container is now kept as is, with a warning, and no prompt is shown. A disabled service without a live container does not block anything, and a rename is unaffected (it never removes the live resource). Also correct the comment in rebuild, which claimed narrowing left the convergence of networks and volumes unaffected. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> |
||
|---|---|---|
| .. | ||
| api | ||
| bridge | ||
| compose | ||
| dryrun | ||
| e2e | ||
| mocks | ||
| remote | ||
| utils | ||
| watch | ||