mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
17 lines
360 B
Go
17 lines
360 B
Go
|
// +build !linux
|
||
|
|
||
|
package volume
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"runtime"
|
||
|
|
||
|
mounttypes "github.com/docker/docker/api/types/mount"
|
||
|
)
|
||
|
|
||
|
// ConvertTmpfsOptions converts *mounttypes.TmpfsOptions to the raw option string
|
||
|
// for mount(2).
|
||
|
func ConvertTmpfsOptions(opt *mounttypes.TmpfsOptions) (string, error) {
|
||
|
return "", fmt.Errorf("%s does not support tmpfs", runtime.GOOS)
|
||
|
}
|