mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
When a container is started with `--net=host` with a particular name and it is subsequently destroyed, then all subsequent creations of the container with the same name will fail. This is because in `--net=host` the namespace is shared i.e the host namespace so trying to destroy the host namespace by calling `LeaveAll` will fail and the endpoint is left with the dangling state. So the fix is, for this mode, do not attempt to destroy the namespace but just cleanup the endpoint state and return. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com> Upstream-commit: 9bb69f9726e7f8cba0cdf681e5060e47b9c45298 Component: engine