diff --git a/mount_darwin.go b/mount_darwin.go new file mode 100644 index 0000000000..aeac78cda5 --- /dev/null +++ b/mount_darwin.go @@ -0,0 +1,7 @@ +package docker + +import "errors" + +func mount(source string, target string, fstype string, flags uintptr, data string) (err error) { + return errors.New("mount is not implemented on darwin") +} diff --git a/mount_linux.go b/mount_linux.go new file mode 100644 index 0000000000..a5a24e8480 --- /dev/null +++ b/mount_linux.go @@ -0,0 +1,8 @@ +package docker + +import "syscall" + + +func mount(source string, target string, fstype string, flags uintptr, data string) (err error) { + return syscall.Mount(source, target, fstype, flags, data) +}