How can I use my own local folders as volumes in the docker artifact container?

I follow these instructions to start the artifactory container: https://www.jfrog.com/confluence/display/RTF/Running+with+Docker

It works, and artifactory is up and running, but in this way I cannot use my own host directory, which will be linked as container volumes. The manual says that

-v /var/opt/jfrog/artifactory/etc
-v /var/opt/jfrog/artifactory/data
-v /var/opt/jfrog/artifactory/backup
-v /var/opt/jfrog/artifactory/logs

when the container starts, but this way I get that the volumes are stored in some / var / lib / docker / volume / .. subfolders. I would like these volumes to be mounted, for example, in my host / opt / artifactory /

So, I tried to use the volume mapping as follows:

-v /opt/artifactory/etc:/var/opt/jfrog/artifactory/etc
-v /opt/artifactory/data:/var/opt/jfrog/artifactory/data
-v /opt/artifactory/backup:/var/opt/jfrog/artifactory/backup
-v /opt/artifactory/logs:/var/opt/jfrog/artifactory/logs

but I get this error:

** ERROR: Artifactory home folder not defined or does not exists at

Has anyone tried this before? How can I manage it?

, .

+4
1

Artifactory

export ARTIFACTORY_HOME=/var/opt/jfrog/artifactory ( , ).

, docker run -e ARTIFACTORY_HOME=/var/opt/jfrog/artifactory.

.


OP Mikyjpeg :

:
/var/opt/jfrog/artifactory/etc , . ( ), , .
, etc . .

, -v , , .

+2

Source: https://habr.com/ru/post/1616207/


All Articles