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

ipv6 RPC bind failed #50

Closed
aigooman opened this issue Jul 15, 2021 · 1 comment
Closed

ipv6 RPC bind failed #50

aigooman opened this issue Jul 15, 2021 · 1 comment

Comments

@aigooman
Copy link

错误信息:

[cont-init.d] 88-done: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

07/15 11:46:43 [NOTICE] IPv4 RPC: listening on TCP port 6800

07/15 11:46:43 [ERROR] IPv6 RPC: failed to bind TCP port 6800
Exception: [SocketCore.cc:312] errorCode=1 Failed to bind a socket, cause: Name or service not known

docker-compose文件:

  aria:
    image: p3terx/aria2-pro
    container_name: aria
    logging:
      options:
        max-size: 1m
    ports:
      - 6800:6800
      - 6888:6888
      - 6888:6888/udp
    environment:
      RPC_SECRET: "{my token}"
    volumes:
      - /etc/aria:/config
      - /home/downloads:/downloads
    restart: unless-stopped

求指点,十分感谢!

@wangzexi
Copy link

wangzexi commented May 7, 2022

Docker容器默认没有IPv6地址,需要手动开启。或者直接network_mode: host绑定到主机网络。

@P3TERX P3TERX closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants