[FEATURE]建议可以禁止容器访问外网 #6693
Replies: 8 comments 1 reply
-
也可以使用 docker network create --internal isolated_net 这会创建一个隔离网络,容器只能与该网络内的其他容器通信,无法访问外网。
|
Beta Was this translation helpful? Give feedback.
-
就是说想实现,外部可以访问容器,但是容器不能主动访问外网那种 |
Beta Was this translation helpful? Give feedback.
-
这种配置后,外面无法访问容器了。 |
Beta Was this translation helpful? Give feedback.
-
宿主机与容器之间的通信不受 --internal 标志的限制,因为宿主机有对容器的直接访问权限。 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
https://blog.1l1.icu/2024/10/10/docker-jin-zhi-jiang-rong-qi-duan-kou-ying-she-dao-gong-wang/ |
Beta Was this translation helpful? Give feedback.
-
1Panel 版本
v1.10.18-lts
请描述您的需求或者改进建议
可以在应用创建时选择是否允许应用访问外网
请描述你建议的实现方案
添加是否禁止访问外网的选项
附加信息
No response
Beta Was this translation helpful? Give feedback.
All reactions