Working with kernel network namespaces created by Docker

Published on Author admin

To work with kernel network namespaces created by Docker create necessary symbolic link: ln -s /var/run/docker/netns  /var/run/netns List network namespaces: ip netns list Result will be similar to: # ip netns list 644c14147ad2 (id: 2) bb230cf5f65f (id: 1) e2772d19bfd0 (id: 0) Execute command inside network namespace: ip netns exec <namespace> <command> Example - listing network… Continue reading Working with kernel network namespaces created by Docker