mirror of
https://github.com/Finb/bark-server.git
synced 2026-04-27 14:45:50 +03:00
[GH-ISSUE #171] 旁路由模式下docker无法通过外网访问 #86
Labels
No labels
enhancement
in progress
need test
pull-request
v2
v2
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bark-server#86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sean908 on GitHub (Sep 18, 2022).
Original GitHub issue: https://github.com/Finb/bark-server/issues/171
使用手册中docker用法的基本命令
docker run -dt --name bark -p 8080:8080 -vpwd/bark-data:/data finab/bark-server结果发现内网
curl可以正常返回200, 但是公网访问失败, 通过端口扫描也显示容器放开的端口是关闭状态在命令中加用
--net=host可以实现公网访问所以容器使用桥接网络时是否还需要加配什么呢?
PS: 跑容器的是一台旁路由
@Finb commented on GitHub (Sep 19, 2022):
原因很多, 建议用类似“Docker端口映射外部无法访问”的关键字去搜一下,或者你就简单的用 host 网络