5ec67f98b1cfa1c6b88498c532c8aef65e334607
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
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%