File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package commands
2
2
3
3
import (
4
4
"os/exec"
5
+ "runtime"
5
6
"strconv"
6
7
7
8
"github.com/phase2/rig/cli/util"
@@ -82,11 +83,14 @@ func (cmd *Start) Run(c *cli.Context) error {
82
83
dns := Dns {BaseCommand {machine : cmd .machine , out : cmd .out }}
83
84
dns .ConfigureDns (cmd .machine , c .String ("nameservers" ))
84
85
85
- cmd .out .Verbose .Println ("Enabling NFS file sharing" )
86
- if nfsErr := util .StreamCommand (exec .Command ("docker-machine-nfs" , cmd .machine .Name )); nfsErr != nil {
87
- cmd .out .Error .Printf ("Error enabling NFS: %s" , nfsErr )
86
+ // NFS mounts are Mac-only.
87
+ if runtime .GOOS == "darwin" {
88
+ cmd .out .Verbose .Println ("Enabling NFS file sharing" )
89
+ if nfsErr := util .StreamCommand (exec .Command ("docker-machine-nfs" , cmd .machine .Name )); nfsErr != nil {
90
+ cmd .out .Error .Printf ("Error enabling NFS: %s" , nfsErr )
91
+ }
92
+ cmd .out .Verbose .Println ("NFS is ready to use" )
88
93
}
89
- cmd .out .Verbose .Println ("NFS is ready to use" )
90
94
91
95
// NFS enabling may have caused a machine restart, wait for it to be available before proceeding
92
96
cmd .machine .WaitForDev ()
You can’t perform that action at this time.
0 commit comments