Home > Article > Operation and Maintenance > 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
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
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!