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.
volumeMounts:
- mountPath: "/opt/jboss"
subPath: "jboss"
name: keycloak-volumen-test
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.