mirror of
https://github.com/docker/cli.git
synced 2026-01-25 03:42:05 +03:00
For `--mount type=tmpfs,target=/foo,readonly`, the `readonly` flag was just ignored. Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp> Upstream-commit: 3e3d3c8086237f4938e3e13561dbc1d41b5c617b Component: engine
17 lines
375 B
Go
17 lines
375 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, readOnly bool) (string, error) {
|
|
return "", fmt.Errorf("%s does not support tmpfs", runtime.GOOS)
|
|
}
|