Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container network namespace not visible for ip netns ... #42466

Open
arnegroskurth opened this issue Jun 4, 2021 · 0 comments
Open

Container network namespace not visible for ip netns ... #42466

arnegroskurth opened this issue Jun 4, 2021 · 0 comments

Comments

@arnegroskurth
Copy link

Description

Network namespaces created for containers are not visible for the ip netns ... commands as they (or their filesystem-representation) are not created/present under /var/run/netns/ but in the non-standard /var/run/docker/netns/ directory.

This can be quite annoying when debugging more complex container networking layouts and many users seem to help themselves by manually creating appropriate symlinks (e.g. here, here and here)

Is there a reason to diverge from the standard path?

Steps to reproduce the issue:

  1. Start any container
  2. Note empty output of ip netns list

Describe the results you received:

An empty output of ip netns list.

Describe the results you expected:

See the network namespace associated with the container.

Output of docker version:

Docker version 20.10.2, build 20.10.2-0ubuntu1~20.04.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants