Skip to content

Instantly share code, notes, and snippets.

@jbaruch
Last active October 13, 2015 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbaruch/ba94cd3150645aa079bf to your computer and use it in GitHub Desktop.
Save jbaruch/ba94cd3150645aa079bf to your computer and use it in GitHub Desktop.
Running Artifafctory with persistent volume
  • mkdir projects/homes
  • docker create -v ~/projects/homes/artifactory-home/data:/var/opt/jfrog/artifactory/data -v ~/projects/homes/artifactory-home/logs:/var/opt/jfrog/artifactory/logs -v ~/projects/homes/artifactory-home/backup:/var/opt/jfrog/artifactory/backup -v ~/projects/homes/artifactory-home/etc:/var/opt/jfrog/artifactory/etc --name artifactory_home jfrog-docker-registry.bintray.io/jfrog/artifactory-pro:4.1.3
  • docker run -d -p 8081:8081 --volumes-from artifactory_home --name artifactory jfrog-docker-registry.bintray.io/jfrog/artifactory-pro:4.1.3
  • Artifactory will not start. It starts with user artifactory, which can't create directories and files in host's user directory - see RTFACT-8310. But it will cerate a default file from which the username is taken.
  • vi ~/projects/homes/artifactory-home/etc/default //change the artifactory user to root
  • docker start artifactory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment