docker常用的4中网络模式:

    • container
    • bridge(默认网络模式,)
    • host(使用宿主机网络,不需要进行端口映射)
    • null()

    通过docker info可以查看更多的网络信息
    image.png