The -v switch works fine.  What doesn't work is to map to a local directory
i.e.

-v $ARITFACTORY_HOME/etc is good, but -v $ARITFACTORY_HOME/etc:$(pwd) 

The problem is due to artifactory needing a file that's in /etc to start the
first time.  The way docker works is if you give the first -v option above
the files that are on the image originally are placed in the volume.  The
second case does not do this so you end up with artifactory not having
access to its files.

A workaround would be doing something like:

docker run --name temp <artifactory image> /bin/false
docker cp temp:/etc/opt/jfrog/artifactory .
cd artifactory
docker run ... with all the -v options ...

I hope that helps
Jay




--
View this message in context: 
http://forums.jfrog.org/Docker-official-Volumes-Support-tp7580453p7580456.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to