Home>Article>Operation and Maintenance> Two ways to configure docker bridge

Two ways to configure docker bridge

王林
王林 forward
2021-03-03 10:48:12 3323browse

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

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!

Statement:
This article is reproduced at:51cto.com. If there is any infringement, please contact admin@php.cn delete