Open tjzhlong opened 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
看了这篇文章《使用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
不知道问题出在哪,还请赐教