# 自定义网络的使用方式

> 来源：梦飞idc云平台 | 原文：https://www.mfisp.com/16423.html | 发布：2023-02-09 | 更新：2023-02-09 | 分类：建站教程、投稿分享

## 1.bridge模式

 

`bridge驱动类似默认的bridge网络模式，将数据桥接到另一个容器上`

 

docker network create -d bridge nework3 #-d指定驱动模式

 

docker network create --subnet 172.10.0.0/24 --gateway 172.10.0.1 network #--subnet表示指定网段--gateway表示指定网关一般为第一个

 

![自定义网络的使用方式](https://www.mfisp.com/wp-content/uploads/2022/10/11048-apQ5nb.jpg)

 

``

---
本页由 梦飞idc云平台（https://www.mfisp.com）提供。站点导航见 https://www.mfisp.com/llms.txt
