<p>Basically I have the docker image with keycloak and an azure disk to persist the changes we make in keycloak. Unfortunately the machine does not get up because when mounting the azure disk in the path / opt / jboss it empties the content that already exists and cannot execute the entrypoint of the dockerfile ... any ideas? I try with subPath and without subPath.</p>
<pre><code>volumeMounts:
        - mountPath: &quot;/opt/jboss&quot;
          subPath: &quot;jboss&quot;
          name: keycloak-volumen-test
</code></pre>

algarcia95
<p>It seems the Azure Disk and Azure File will both cover the existing files. So you need to mount to a new folder which does not exist before. Maybe the Azure file is a better choice, you can copy the necessary files into the file share. Then the container will work as it does before.</p>
