mirror of
https://github.com/docker/compose.git
synced 2026-11-19 22:50:08 +00:00
Treat a network rename (observed.Name != desired.Name) as a recreation rather than an additive create: the old network is removed, the new one created, and attached containers are migrated onto it (reconnected), so they no longer stay on the previous network until recreated for another reason. Networks carry no data, so removing the previous network — instead of leaving it dangling alongside the new one under the same compose label — is safe and keeps subsequent runs deterministic. This is a marginal behavior change from previous Compose releases (which created the new network and left the old attachments in place) in exchange for the more logical outcome. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> |
||
|---|---|---|
| .. | ||
| api | ||
| bridge | ||
| compose | ||
| dryrun | ||
| e2e | ||
| mocks | ||
| remote | ||
| utils | ||
| watch | ||