Camunda Docker (camunda/camunda-bpm-platform:wildfly11-latest):Mounting deployment directory on host machine

Hi,

I’m running Camunda (currently as root) on an arch linux host (kernel 4.17.11) with btrfs root file system.
When mounting the deployments folder (/camunda/standalone/deployments) to my host the directory stays empty. Normally deployments contains

drwxr-xr-x 1 camunda camunda 662 Aug 1 11:05 .
drwxr-xr-x 1 camunda camunda 74 Jul 8 08:29 …
-rw-r–r-- 1 camunda camunda 8888 Oct 24 2017 README.txt
-rw-r–r-- 1 camunda camunda 2317681 May 24 08:17 camunda-engine-rest-7.9.0.war
-rw-r–r-- 1 camunda camunda 29 May 24 08:17 camunda-engine-rest-7.9.0.war.deployed
-rw-r–r-- 1 camunda camunda 122320 May 24 08:19 camunda-example-invoice-7.9.0.war
-rw-r–r-- 1 camunda camunda 33 May 24 08:19 camunda-example-invoice-7.9.0.war.deployed
-rw-r–r-- 1 camunda camunda 2407 May 24 08:20 camunda-h2-webapp-7.9.0.war
-rw-r–r-- 1 camunda camunda 27 May 24 08:20 camunda-h2-webapp-7.9.0.war.deployed
-rw-r–r-- 1 camunda camunda 7237716 May 24 08:23 camunda-webapp-jboss-7.9.0.war
-rw-r–r-- 1 camunda camunda 30 May 24 08:23 camunda-webapp-jboss-7.9.0.war.deployed
drwxr-xr-x 1 camunda camunda 70 May 24 08:13 camunda-welcome.war
-rw-r–r-- 1 camunda camunda 19 Jul 8 08:29 camunda-welcome.war.deployed

When I mount /camunda/standalone/deployments to my host via

docker run -d -v /tmp/test:/camunda/standalone/deployments:rw --name camunda -p 8080:8080 camunda/camunda-bpm-platform:wildfly11-latest

both directories (container and host dir) are empty and Camunda isn’t running.

BUT: If I create a file in /camunda/standalone/deployments this file also becomes visible in the directory mounted at my host and vice versa. Only the files created by the system (without mounted volume) don’t appear.

How can I mount the deployments folder including the files which are created by the system (shown above) ?

2 Likes

i have the same problem, any idea for this?