2

I am having issue writing to the mounted volume on host filesystem from docker container

Is there some special thing i have to do when building the container to make the container write data to the mounted volume on host for persistency?

I have seen containers that write to host filesystem like the official mysql docker image and several others but when i build my own images, and i mount the volume on host, i find out it doesn't write to host, but only reads from the host.

030
  • 5,731
  • 12
  • 61
  • 107
uberrebu
  • 493
  • 5
  • 15
  • 32

1 Answers1

0

I think for certain docker images, one need to give access to the host mounted volume to same ui/gid of running container to host as well for write to work properly

uberrebu
  • 493
  • 5
  • 15
  • 32