docker-composeからnfsをマウントする
573 ワード
version: '2.3'
services:
main:
container_name: "example"
build:
context: ./
dockerfile: Dockerfile
runtime: nvidia
restart: always
volumes:
- type: volume
source: nfs_example
target: /nfs_target
volume:
nocopy: true
stdin_open: true
tty: true
volumes:
nfs_example:
driver_opts:
type: "nfs"
o: "addr={NAS address},nolock,soft,rw"
device: ":/volume2/nfs_shared"
Reference
この問題について(docker-composeからnfsをマウントする), 我々は、より多くの情報をここで見つけました https://velog.io/@msjeong/docker-compose-nfs-마운트テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol