jfrog / artifactory-docker-examples

Examples for using Artifactory Docker distribution in various environments
https://www.jfrog.com/artifactory/
Apache License 2.0
330 stars 299 forks source link

34 entrypoint-artifactory.sh] ERROR: Directory /var/opt/jfrog/artifactory has bad permissions for user 'artifactory' #124

Closed Robyngithub closed 6 years ago

Robyngithub commented 6 years ago

not able to run artifactory by using docker compose due to write permission error.

docker-compose file

version: '2'
services:
  artifactory:
    image: docker.bintray.io/jfrog/artifactory-oss:latest
    container_name: artifactory
    ports:
     - 8081:8081
    volumes:
     - /opt/builder/softwares/artifactory:/var/opt/jfrog/artifactory
#    Add extra Java options by uncommenting the following lines
#    environment:
#     - EXTRA_JAVA_OPTIONS=-Xmx4g
    restart: always
    ulimits:
      nproc: 65535
      nofile:
        soft: 32000
        hard: 40000
eldada commented 6 years ago

@Robyngithub - Please also add error log. Your local /opt/builder/softwares/artifactory must be writable by artifactory user (default id 1030). This is also documented in https://www.jfrog.com/confluence/display/RTF/Installing+with+Docker#InstallingwithDocker-ManagingDataPersistence

See if fixing the permissions/ownership on the host fixes it and let us know.