How can I use own located folders as volumes in docker artifactory container? How can I use own located folders as volumes in docker artifactory container? docker docker

How can I use own located folders as volumes in docker artifactory container?


Artifactory home folder not defined or does not exists at

That should be means export ARTIFACTORY_HOME=/var/opt/jfrog/artifactory has not be executed (whether or not you are using volumes).

That also mean you should execute docker run with a -e ARTIFACTORY_HOME=/var/opt/jfrog/artifactory environment option.

See also this support thread.


The OP Mikyjpeg adds in the comments:

I eventually found the problem:
There is a file in the /var/opt/jfrog/artifactory/etc folder of the container that sets all the environment variables. This file is erased by the volume mapping (as it does not exist on my host), it is recreated when the command starts but with a different content.
So I have copied this file from a working container, put into my host etc mapped volume and run again. And now it works.

I was supposing that the -v option creates empty volumes in either cases but now I know that it is not true.