单节点 Artifactory OSS 安装 Docker 失败

问题描述 投票:0回答:1

我正在尝试通过参考Docker来安装单节点Artifactory OSS安装https://jfrog.com/help/r/jfrog-installation-setup-documentation/install-artifactory-single-node-with-docker

容器未启动,容器日志显示以下错误。我尝试在 system.yaml 中添加节点详细信息并检查权限。然而这并没有帮助。您能帮忙解决一下吗?

[root@test-node ~]# docker run --name artifactory -v /opt/jfrog//artifactory/var/:/var/opt/jfrog/artifactory -p 8081:8081 -p 8082:8082 releases-docker.jfrog.io/jfrog/artifactory-oss:latest
Preparing to run Artifactory in Docker
Running as uid=1030(artifactory) gid=1030(artifactory) groups=1030(artifactory)
Dockerfile for this image can found inside the container.
To view the Dockerfile: 'cat /docker/artifactory-oss/Dockerfile.artifactory'.
Copying Artifactory bootstrap files
2023-06-19T10:27:30.503Z [shell] [INFO ] [] [systemYamlHelper.sh:607       ] [main] - Resolved .shared.node.id (test-node) from /opt/jfrog/artifactory/var/etc/system.yaml
2023-06-19T10:27:30.549Z [shell] [INFO ] [] [systemYamlHelper.sh:607       ] [main] - Resolved .shared.node.ip (10.230.248.177) from /opt/jfrog/artifactory/var/etc/system.yaml
2023-06-19T10:27:30.849Z [shell] [INFO ] [] [systemYamlHelper.sh:607       ] [main] - Resolved .shared.extraJavaOpts (__sensitive_key_hidden___) from /opt/jfrog/artifactory/var/etc/system.yaml
2023-06-19T10:27:30.896Z [shell] [INFO ] [] [systemYamlHelper.sh:607       ] [main] - Resolved .shared.extraJavaOpts (__sensitive_key_hidden___) from /opt/jfrog/artifactory/var/etc/system.yaml

systems.yaml如下

[root@test-node ~]# cat $JFROG_HOME/artifactory/var/etc/system.yaml
## @formatter:off
## JFROG ARTIFACTORY SYSTEM CONFIGURATION FILE
## HOW TO USE: comment-out any field and keep the correct yaml indentation by deleting only the leading '#' character.
configVersion: 1

## NOTE: JFROG_HOME is a place holder for the JFrog root directory containing the deployed product, the home directory for all JFrog products.
## Replace JFROG_HOME with the real path! For example, in RPM install, JFROG_HOME=/opt/jfrog

## NOTE: Sensitive information such as passwords and join key are encrypted on first read.
## NOTE: The provided commented key and value is the default.

## SHARED CONFIGURATIONS
## A shared section for keys across all services in this config
shared:
  ## Java 17 distribution to use
  #javaHome: "JFROG_HOME/artifactory/app/third-party/java"

  ## Extra Java options to pass to the JVM. These values add to or override the defaults.
  extraJavaOpts: "-Xms512m -Xmx2g"

  ## Security Configuration
  security:
    ## Join key value for joining the cluster (takes precedence over 'joinKeyFile')
    #joinKey: "<Your joinKey>"

    ## Join key file location
    #joinKeyFile: "<For example: JFROG_HOME/artifactory/var/etc/security/join.key>"

    ## Master key file location
    ## Generated by the product on first startup if not provided
    #masterKeyFile: "<For example: JFROG_HOME/artifactory/var/etc/security/master.key>"

    ## Maximum time to wait for key files (master.key and join.key)
    #bootstrapKeysReadTimeoutSecs: 120

  ## Node Settings
  node:
    ## A unique id to identify this node.
    ## Default auto generated at startup.
    id: "test-node"

    ## Default auto resolved by startup script
    ip: 10.230.248.177

    ## Sets this node as primary in HA installation
    #primary: true

    ## Sets this node as part of HA installation
    #haEnabled: true

  ## Database Configuration
  database:
    ## One of mysql, oracle, mssql, postgresql, mariadb
    ## Default Embedded derby

    ## Example for postgresql
    #type: postgresql
    #driver: org.postgresql.Driver
    #url: "jdbc:postgresql://<your db url, for example: localhost:5432>/artifactory"
    #username: artifactory
    #password: password
docker artifactory
1个回答
0
投票

对于延迟回复在此表示歉意。

问题是由于基础设施容量造成的。 Artifactory容器在内存增加到04Gb后开始工作。

有关详细的基础设施要求,请参阅 - https://jfrog.com/help/r/jfrog-installation-setup-documentation/artifactory-system-requirements-and-platform-support

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.