stfwn
  • Introduction
  • Calculus
    • Gradient
    • Taylor Series
    • Miscellaneous
  • Computer Science
    • Basic Architecture and Assembly
  • Fixes & Snippets
    • Docker
    • HTML
    • LaTeX
    • Linux
    • Node.js
    • Miscellaneous
  • Linear Algebra
    • Orthogonality
    • The Gram-Schmidt Process
    • QR-Factorization
    • Orthogonal Diagonalization
    • Quadratic Forms
    • Least Squares Theorem
    • Singular Value Decomposition
    • Pseudoinverse
  • Miscellaneous
    • Digital Safety
    • Homelab
    • Links
    • Music
  • Reading
Powered by GitBook
On this page
  1. Fixes & Snippets

Docker

Mount Network File System (NFS) as a volume

  1. Check the NFS export list for a particular IP with showmount -e <IP>

  2. In docker-compose.yml:

services:
  some-service:
    volumes:
      - type: volume
        source: some-nfs-volume
        target: /destination/in/container
        volume:
          nocopy: true

volumes:
  some-nfs-volume:
    driver: local
    driver_opts:
      type: nfs
      o: "addr=<IP>,nolock,soft,rw,"
      device: ":/exported/NFS/path/"
PreviousFixes & SnippetsNextHTML

Last updated 5 years ago