mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 10:35:51 +00:00
10b73e1964
One-click updates recreated containers from the raw inspected config, so Docker rejected the create for any container using network_mode: container:<id> (compose service:<x>) or host with "conflicting options: hostname and the network mode", leaving the workload stopped under its _pulse_backup_ name until the rollback rename restored it. Docker fills Config.Hostname with the namespace owner's ID on such containers, so the verbatim copy always tripped the daemon validation (verified against a real Docker 29.5.2 daemon: verbatim create 409s, sanitized create succeeds and the replacement starts in the shared namespace). Strip the namespace-owned settings before ContainerCreate: hostname and domainname for container:/host modes, plus exposed/published ports, links, DNS options, and extra hosts for container: mode, all of which the daemon derives from the owning namespace. Bridge and user-defined networks are untouched. Refs #1564