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,901
  • 13
  • 68
  • 110
uberrebu
  • 503
  • 6
  • 17
  • 36

1 Answers1

1

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
  • 503
  • 6
  • 17
  • 36