mirror of
https://github.com/moby/moby.git
synced 2025-04-18 20:44:11 +03:00
Split the `ErrConflictHostNetwork` error into two distinct errors: 1. `ErrConflictConnectToHostNetwork` when attempting to change the network mode of a running container from a different mode to `host` 2. `ErrConflictDisconnectFromHostNetwork` when the network mode of a running container is `host` and attempting to disconnect from `host` This commit clarifies error messaging by differentiating between the two errors, making it clearer which operation failed and how to fix it. Signed-off-by: Brendon Smith <bws@bws.bio>