Hi everyone,
I’m trying to get a docker-based JIRA setup working with persistent storage for the two relevant config directories. The host is running Ubintu linux 16.04 and Docker version 17.09.0-ce, the image I’m using is “cptactionhank/atlassian-jira-software”, though that doesn’t seem to be relevant.
I’ve created two subdirs on the machine to be mapped to /opt/atlassian/jira and /var/altassian/jira, respectively; yet, when I type
only the first volume listed above (jira-sw-var) is actually present inside the container, the second one is just the container’s original directory. And if I swap the two container parameters in the command line, then the other volume (jira-sw-opt) appears inside the container, but the first one is nowhere to be found. So, it looks like only the first volume listed in the command line is added to the container.
Both volumes are on the same file system by the way - the machine only has one data partition, so I can’t move the volume to another partition.
I’ve already tried to use volume containers and the “–volumes-from” parameter, plus bind mounts instead to volumens, to no avail. I cannot get both volumes “into” the container at the same time.
Is this a known limitation of docker? What can I do to provide both subdirs to the container from a consistent place accessible to the host? Any help uis appreaciated!
(I assume you mean the /opt/ inside the container)
Yes, otherwise, I could not have seen that the /opt directory in one case contained the volume I wanted (but /var/atlassian wasn’'t overloaded), and in the other case it contained only the container files (but /var/ was properly mounted from the host).
Can anyone confirm that this is a general problem with docker? Or am I the only one having problems with two volumes from the same host partition added to a container?
Thanks for confirming that. I’ve now managed to get another container (not jira-software, but alpine) running with both volumes visible as well. So the problem must lie in the jira container itself.
Could this be the reason I cannot find the second of my two volumes listed in the command line (no matter which one comes second)? How can I get the container to stop doing that so I can actually save my configuration?