Docker安装JCR失败
来源:9-6 搭建免费版Docker镜像仓库

萌白在努力
2020-10-02
控制台报一下错误:
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
1回答
-
清风
2020-10-02
提示挂载的 Volume 没有给用户权限。
在 bash_profile 里添加环境变量$JFROG_HOME
为$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 即可
00
相似问题