Docker network mode

Docker network mode

  • host mode
    using a specified network docker -net = host used when actually using the docker RUN and host, as seen in the container is the host card ip ip

  • Mode container
    using -net = container: container_id / container_name plurality of containers using a common network, the same is seen ip

  • non mode
    using -net = none is specified, in this mode, without any network configuration, there is no card

  • bridge mode
    using the -net = bridge specify the default mode, is this not specify the default network mode. This model will be assigned a unique Network Namespace for each container. Nat vmware similar to the network model. All the containers on the same host will be in the same network, can communicate with each other.

Guess you like

Origin www.cnblogs.com/jakaBlog/p/10945262.html