How to directly mount NFS share/volume in container using docker compose v3

后端 未结 5 1504
予麋鹿
予麋鹿 2020-12-04 07:46

I have a compose file with v3 where there are 3 services sharing/using the same volume. While using swarm mode we need to create extra containers & volumes to manage our

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 08:17

    My problem was solved with changing driver option type to NFS4.

    volumes:
      my-nfs-share:
        driver: local
        driver_opts:
          type: "nfs4"
          o: "addr=172.24.0.107,rw"
          device: ":/mnt/sharedwordpress"
    

提交回复
热议问题