请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

Docker安装JCR失败

控制台报一下错误:

Preparing to run Artifactory in Docker

Running as uid=1030(artifactory) gid=1030(artifactory)

Dockerfile for this image can found inside the container.

To view the Dockerfile: 'cat /docker/artifactory-pro/Dockerfile.artifactory'.

Copying Artifactory bootstrap files

2020-10-02T06:46:59.000Z [shell] [INFO ] [] [installerCommon.sh:1431       ] [main] - Checking open files and processes limits

2020-10-02T06:46:59.000Z [shell] [INFO ] [] [installerCommon.sh:1434       ] [main] - Current max open files is 1048576

2020-10-02T06:46:59.000Z [shell] [INFO ] [] [installerCommon.sh:1445       ] [main] - Current max open processes is unlimited

2020-10-02T06:46:59.000Z [shell] [INFO ] [] [installerCommon.sh:1512       ] [main] - Testing directory /opt/jfrog/artifactory/var has read/write permissions for user id 1030

/opt/jfrog/artifactory/app/bin/installerCommon.sh: line 1484: /opt/jfrog/artifactory/var/test-permissions: Permission denied

2020-10-02T06:46:59.000Z [shell] [INFO ] [] [installerCommon.sh:1520       ] [main] - ###########################################################

2020-10-02T06:46:59.000Z [shell] [INFO ] [] [installerCommon.sh:1521       ] [main] - /opt/jfrog/artifactory/var DOES NOT have proper permissions for user id 1030

2020-10-02T06:46:59.000Z [shell] [INFO ] [] [installerCommon.sh:1522       ] [main] - Directory: /opt/jfrog/artifactory/var, permissions: 755, owner: root, group: root

2020-10-02T06:46:59.000Z [shell] [INFO ] [] [installerCommon.sh:1523       ] [main] - Mounted directory must have read/write permissions for user id 1030

2020-10-02T06:46:59.000Z [shell] [INFO ] [] [installerCommon.sh:1524       ] [main] - ###########################################################

2020-10-02T06:46:59.000Z [shell] [ERROR] [] [installerCommon.sh:698        ] [main] - Directory /opt/jfrog/artifactory/var has bad permissions for user id 1030


正在回答 回答被采纳积分+3

1回答

清风 2020-10-02 17:58:53

提示挂载的 Volume 没有给用户权限。

  1. 在 bash_profile 里添加环境变量$JFROG_HOME

  2. 为$JFROG_HOME/artifactory/var增加用户权限

mkdir -p $JFROG_HOME/artifactory/var/etc/

cd $JFROG_HOME/artifactory/var/etc/

touch ./system.yaml

chown -R 1030:1030 $JFROG_HOME/artifactory/var

chmod -R 777 $JFROG_HOME/artifactory/var


再启动 jcr 即可


0 回复 有任何疑惑可以回复我~

相似问题

登录后可查看更多问答,登录/注册

问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号