OpenGG / aria2-delegate

Deletgate cli command to remote aria2 rpc call
GNU General Public License v3.0
2 stars 0 forks source link

请教一下,docker下aria2启动失败了 #1

Open tjzhlong opened 3 years ago

tjzhlong commented 3 years ago

看了这篇文章《使用docker快速部署aria2》,但是启动失败了。 日志 04/23 05:15:55 [NOTICE] Emergency shutdown sequence commencing...

Download Results: gid |stat|avg speed |path/URI ======+====+===========+=======================================================

04/23 05:15:55 [NOTICE] Serialized session to '/config/aria2.session' successfully.

UID: 1001 GID: 1002

Setting conf chown: /config/aria2.conf: Operation not permitted [DONE] Setting owner and permissions

chown: /config/aria2.conf: Operation not permitted UID: 1001 GID: 1002

Setting conf [DONE] Setting owner and permissions chown: /config/aria2.conf: Operation not permitted

UID: 1001 GID: 1002

Setting conf [DONE] Setting owner and permissions

UID: 1001 GID: 1002

Setting conf chown: /config/aria2.conf: Operation not permitted [DONE] Setting owner and permissions

UID: 1001 GID: 1002

Setting conf [DONE] Setting owner and permissions chown: /config/aria2.conf: Operation not permitted

UID: 1001 GID: 1002

Setting conf [DONE] Setting owner and permissions chown: /config/aria2.conf: Operation not permitted

UID: 1001 GID: 1002

Setting conf [DONE] Setting owner and permissions chown: /config/aria2.conf: Operation not permitted

不知道问题出在哪,还请赐教

OpenGG commented 3 years ago

无法对 /config/aria2.conf 文件授权

docker run \
  -d \
  --name aria2 \
  -u=1001:1002 \ # 这个 uid:gid 要跟你用户一致
  -v /root/aria2/config:/config \  # 冒号前面的路径是host机路径,要保证存在且能被上述uid读写
  -v /root/aria2/downloads:/downloads \ #同上
  -p 6800:6800 \
  opengg/aria2