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
docker run -d --name jirasw --volume /docker/data/jira-sw-var:/var/atlassian:rw --volume /docker/data/jira-sw-opt:/opt/atlassian:rw -p 8080:8080 --link jiradb:db cptactionhank/atlassian-jira-software:latest
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!