Skip to content

atassumer/docker-machine-nfs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

Docker Machine NFS

Activates NFS for an existing boot2docker box created through Docker Machine.

Requirements

Install

curl -s https://raw.githubusercontent.com/adlogix/docker-machine-nfs/master/docker-machine-nfs.sh |
  sudo tee /usr/local/bin/docker-machine-nfs > /dev/null && \
  sudo chmod +x /usr/local/bin/docker-machine-nfs

Supports

  • Virtualbox
  • Paralells
  • VMware Fusion

Usage

Usage: ./docker-machine-nfs.sh <machine-name> [options]

Options:
  
  -f, --force               Force reconfiguration of nfs
  -n, --nfs-config          NFS configuration to use in /etc/exports. (default to '-alldirs -mapall=$(id -u):$(id -g)')
  -s, --shared-folder,...   Folder to share (default to /Users)
  
Examples:

  $ docker-machine-nfs test
  
    > Configure the /Users folder with NFS
  
  $ docker-machine-nfs test --shared-folder=/Users --shared-folder=/var/www
  
    > Configures the /Users and /var/www folder with NFS
    
  $ docker-machine-nfs test --shared-folder=/var/www --nfs-config="-alldirs -maproot=0"
  
    > Configure the /var/www folder with NFS and the options '-alldirs -maproot=0'

Demo

asciicast

Credits

Heavily inspired by @mattes ruby version boot2docker-nfs.rb.

About

Activates NFS on docker-machine

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%