Installing Artifactory Using Docker Fedora Host
I was following the steps from Running Artifactory with Docker and encounter a few issues while mounting images, mainly related to SELinux and Docker. Here are the steps I followed.
- Pull the Artifactory Image :
docker pull jfrog-docker-registry.bintray.io/jfrog/artifactory-oss:latest
- Set your Artifactory directory
export ARTIFACTORY_HOME=/var/opt/jfrog/artifactory
- Change SELinux :
chcon -Rt svirt_sandbox_file_t $ARTIFACTORY_HOME
- Create a container from the Artifactory Image :
docker run -p 8081:8081 \ -v $ARTIFACTORY_HOME/data:$ARITFACTORY_HOME/data \ -v $ARTIFACTORY_HOME/logs:$ARITFACTORY_HOME/logs \ -v $ARTIFACTORY_HOME/backup:$ARITFACTORY_HOME/backup \ jfrog-docker-registry.bintray.io/jfrog/artifactory-oss:latest
- To start your Artifactory container just issue the following
docker start artifactory