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

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.

主站蜘蛛池模板: 竹北市| 哈巴河县| 柞水县| 巴彦淖尔市| 海林市| 九江市| 喀喇沁旗| 读书| 定结县| 苍南县| 玉屏| 青州市| 瓦房店市| 萨迦县| 和田县| 阳谷县| 达拉特旗| 电白县| 清河县| 桐庐县| 乌苏市| 锡林郭勒盟| 潜山县| 习水县| 台前县| 榕江县| 根河市| 卓资县| 耿马| 通渭县| 德令哈市| 忻州市| 公主岭市| 蕲春县| 获嘉县| 武宁县| 迁安市| 鹿泉市| 凌源市| 碌曲县| 天全县|