Everything I read uses the PID of the container that uses that network. Unfortunately the container dies because of a what I think is a network issue. I want to nsenter into the network namespace and run commands rather than run a different container on that network.
My /var/run/docker/netns/ folder is empty. But the network is a bridge network that shows up in docker network ls
When a container is started, it gets it's own network namespace unless it is started with
--net=none
or--net=host
. This namespace gets deleted once the container is stopped. So you won't be able to debug anything related to that container's network once it's not running.You need to check the container logs as to why the container exited.
Anyways here are some relevant sample commands: