Two ways to configure docker bridge

王林
Release: 2021-03-03 10:48:12
forward
3427 people have browsed it

Two ways to configure docker bridge

The two methods of docker bridge configuration are:

1. Change the docker configuration file;

2. Use docker instructions to customize the network Bridge

1. Modify docker configuration

This affects the whole world, and the container will use this network configuration by default

Two ways to configure docker bridge

Add "bip": "172.24.16.1/24" here, and then restart docker to take effect

2. Create a network bridge

docker network create --subnet="172.24.16.1/24" bridge1
Copy after login

Original link: https://blog.51cto. com/dorebmoon/2334179

Related recommendations: Docker Getting Started Tutorial

The above is the detailed content of Two ways to configure docker bridge. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:51cto.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template