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.

  1. Pull the Artifactory Image :
    docker pull jfrog-docker-registry.bintray.io/jfrog/artifactory-oss:latest
    
  2. Set your Artifactory directory
    export ARTIFACTORY_HOME=/var/opt/jfrog/artifactory 
    
  3. Change SELinux :
    chcon -Rt svirt_sandbox_file_t $ARTIFACTORY_HOME
    
  4. 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 
    
  5. To start your Artifactory container just issue the following
    docker start artifactory
    
lcamilo15
0

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: