Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重启容器后,web界面无法打开。 #1227

Closed
BI4KIA opened this issue Aug 23, 2024 · 8 comments
Closed

重启容器后,web界面无法打开。 #1227

BI4KIA opened this issue Aug 23, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@BI4KIA
Copy link

BI4KIA commented Aug 23, 2024

Description

重启容器后,web界面无法打开。日志中也没有端口开启信息。

DNS Provider

No response

Did you search for similar issues before submitting this one?

Yes, I did, but I didn't find anything useful

Operating System

Linux

Architecture

arm64

Version

v6.6.9

How are you running ddns-go?

Docker

Any other information

No response

@BI4KIA BI4KIA added the bug Something isn't working label Aug 23, 2024
@BI4KIA
Copy link
Author

BI4KIA commented Aug 23, 2024

可以ping通获取到的IP地址

@RoryTHWu
Copy link

我也遇到相同情况,问题似乎来自于 --net=host 无法正常配置开启端口。
可以尝试放弃--net=host 直接使用 -p 9876:9876/tcp 开启端口。

修改后的命令:
docker run -d --name ddns-go --restart=always -p 9876:9876/tcp -v /opt/ddns-go:/root jeessy/ddns-go

My system info for ref:
Arch: x86_64
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble

@BI4KIA
Copy link
Author

BI4KIA commented Aug 24, 2024

我也遇到相同情况,问题似乎来自于 --net=host 无法正常配置开启端口。 可以尝试放弃--net=host 直接使用 -p 9876:9876/tcp 开启端口。

修改后的命令: docker run -d --name ddns-go --restart=always -p 9876:9876/tcp -v /opt/ddns-go:/root jeessy/ddns-go

My system info for ref: Arch: x86_64 Distributor ID: Ubuntu Description: Ubuntu 24.04 LTS Release: 24.04 Codename: noble

我是安装在RouterOS系统的容器里面的,感觉像是IPv4与IPv6无法完全兼容,都获取到了IP地址但总有一个不能与外部网络稳定通讯。ping命令也是时而显示v4地址时而显示v6地址。

@zheng-hongchen
Copy link

docker有问题
/app # netstat -an | grep LISTEN | grep 9876 tcp 0 0 :::9876 :::* LISTEN
用--net=host 容器绑定到了ipv6的端口, 如果改为-p 9876:9876,又无法获取到ipv6的ip。

@BI4KIA
Copy link
Author

BI4KIA commented Aug 25, 2024

docker有问题 /app # netstat -an | grep LISTEN | grep 9876 tcp 0 0 :::9876 :::* LISTEN 用--net=host 容器绑定到了ipv6的端口, 如果改为-p 9876:9876,又无法获取到ipv6的ip。

RouterOS中的docker确实不太好用,兼容性比较差,无奈使用其他程序了。

@BI4KIA BI4KIA closed this as completed Aug 25, 2024
@BI4KIA BI4KIA reopened this Aug 26, 2024
@BI4KIA
Copy link
Author

BI4KIA commented Aug 26, 2024

我目前发现的问题是在系统关闭重启后,docker容器需要手动执行/app/ddns-go -c /root/.ddns_go_config.yaml,web页面和ddns服务才会启动。

@RoryTHWu
Copy link

如果是docker的问题的话,可以直接找个脚本,设置定时运行来更新dns 记录,效果是一样的。Github上面很多写好的,非常轻量,也很好用。

@BI4KIA BI4KIA closed this as completed Aug 26, 2024
@geeklihui
Copy link

我也遇到了,host 模式创建容器后拒绝访问,不使用 host 模式就正常了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants