Files
nexus/wiki/concepts/Docker-网桥.md
2026-04-17 09:34:39 +08:00

28 lines
660 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Docker-网桥
type: concept
tags: [docker, network, bridge]
last_updated: 2026-04-17
---
## Definition
Docker-网桥Docker Bridge是 Docker 默认创建的虚拟网桥设备docker0用于容器与宿主机之间的网络通信。容器可以通过网桥 IPGateway访问宿主机上的服务。
## 获取网桥 IP
```bash
docker network inspect <network_name>
```
查看输出的 "Gateway" 字段,即为网桥 IP 地址。
## Use Cases
- 容器访问宿主机上运行的代理服务
- 容器与宿主机应用之间的网络通信
## Related Concepts
- [[Docker-Network]]
- [[SOCKS5代理]]
## Related Entities
- [[n8n]]