Mounting a single file from an NFS docker volume into a container

后端 未结 2 734
情深已故
情深已故 2021-01-26 22:58

Example (many options omitted for brevity):

version: \"3\"
volumes:
  traefik:
    driver: local
    driver_opts:
      type: nfs
      o: \"addr=192.168.1.100,s         


        
2条回答
  •  忘掉有多难
    2021-01-26 23:41

    I believe I found the issue!

    Wrong:

       volumes:
          - traefik/traefik.toml:/traefik.toml
    

    Correct:

       volumes:
          - /traefik/traefik.toml:/traefik.toml      
    

    Start the volume with "/"

提交回复
热议问题