1. ### Create network ns
    2. mkdir -p /var/run/netns
    3. find -L /var/run/netns -type l -delete
    4. ### Start nginx docker with non network mode
    5. docker run --network=none -d nginx
    6. ### Check corresponding pid
    7. docker ps|grep nginx
    8. docker inspect <containerid>|grep -i pid
    9. ### Check network config for the container
    10. nsenter -t pid -n ip a
    11. ### Link network namespace
    12. export pid=pid
    13. ln -s /proc/$pid/ns/net /var/run/netns/$pid
    14. ip netns list
    15. ### Check docker bridge on the host
    16. brctl show
    17. ### Create veth pair
    18. ip link add A type veth peer name B
    19. ### Config A
    20. brctl addif docker0 A
    21. ip link set A up
    22. ### Config B
    23. SETIP=172.17.0.10
    24. SETMASK=16
    25. GATEWAY=172.17.0.1
    26. ip link set B netns $pid
    27. ip netns exec $pid ip link set dev B name eth0
    28. ip netns exec $pid ip link set eth0 up
    29. ip netns exec $pid ip addr add $SETIP/$SETMASK dev eth0
    30. ip netns exec $pid ip route add default via $GATEWAY
    31. ### Check connectivity
    32. curl 172.17.0.10