Hi all,

I want to ask about docker volumes, is it possible to mount multiple directories in one volume?

Example:

docker run ..... -v nginx-data:/usr/share/nginx -v nginx-data:/etc/nginx nginx

  • maximus459B
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Yes. Buuut…

    If the same files in said folder are being written to that might cause issues…

    I do have a few containers like that, but one folder is read-only…