volume_unsupported.go 375 B

12345678910111213141516
  1. // +build !linux
  2. package volume
  3. import (
  4. "fmt"
  5. "runtime"
  6. mounttypes "github.com/docker/docker/api/types/mount"
  7. )
  8. // ConvertTmpfsOptions converts *mounttypes.TmpfsOptions to the raw option string
  9. // for mount(2).
  10. func ConvertTmpfsOptions(opt *mounttypes.TmpfsOptions, readOnly bool) (string, error) {
  11. return "", fmt.Errorf("%s does not support tmpfs", runtime.GOOS)
  12. }