docker run --network none nginx
172.17.0.0
docker0
, created by ip link add docker0 type bridge
ip netns
: to show the id of the container’s network namespaceip link
show an interface assigned to the bridge networkip link
shows another interface172.17.0.3:80
because it’s isolated-p 8080:80
-> map 8080 of host to 80 of containerBehind the scene, docker uses NAT rule to support port fowarding
iptable -nvL -t nat