官术网_书友最值得收藏!

  • Spring 5.0 By Example
  • Claudio Eduardo de Oliveira
  • 194字
  • 2021-06-24 19:17:29

Docker networks

A Docker network is a layer that provides runtime isolation for containers. It is a kind of sandbox in which to run containers that are isolated from other containers. When the Docker is installed, by default it creates three networks that should not be removed. These three networks are as follows:

  • bridge
  • none
  • host

Also, Docker provides the user with an easy way to create your network. For this purpose, Docker offers two drivers—bridge and overlay.

Bridge can be used for the local environment, and it means this kind of network is allowed on a single host. It will be useful for our applications because it promotes isolation between containers regarding security. This is a good practice. The name of the container attached to this kind of network can be used as a DNS for the container. Internally, Docker will associate the container name with the container IP.

The overlay network provides the ability to connect containers to different machines. This kind of network is used by Docker Swarm to manage the container in a clustered environment. In the newest version, the Docker Compose tool natively supports Docker Swarm.

主站蜘蛛池模板: 菏泽市| 宕昌县| 阿尔山市| 静海县| 望城县| 渝北区| 谢通门县| 鸡泽县| 龙井市| 南丹县| 安宁市| 古浪县| 黔江区| 大埔县| 鲁山县| 太康县| 清远市| 尚义县| 邢台市| 深泽县| 商洛市| 大荔县| 纳雍县| 鹿邑县| 鹤岗市| 晋州市| 工布江达县| 龙胜| 九寨沟县| 桂东县| 扶余县| 称多县| 昌宁县| 保康县| 金平| 滕州市| 永善县| 阿鲁科尔沁旗| 沧源| 鄂尔多斯市| 宜良县|