Docker networking

docker network ls
docker network inspect bridge
docker network inspect host
docker network inspect none
ip addr show docker0
ip link show docker0
ip -c link show type bridge
ip netns
docker inspect ${DOCKER_ID}
ip link # attached to bridge
# vethxxx@ifx
ip -n ${INTERFACE_ID} # assignet do container
# eth0@ifx
ip -n ${NAMESPACE_ID} addr
docker run -p 8080:80 nginx # forward internal port 80 to host port 8080
#iptables -t nat -A PREROUTING -j DNAT --dport 8080 -to-destination 80
#iptables -t nat -A Docker -j DNAT --dport 8080 --to-destination
iptables -nvL -t nat