MCPcopy
hub / github.com/docker/compose / buildTmpfsOptions

Function buildTmpfsOptions

pkg/compose/create.go:1300–1308  ·  view source on GitHub ↗
(tmpfs *types.ServiceVolumeTmpfs)

Source from the content-addressed store, hash-verified

1298}
1299
1300func buildTmpfsOptions(tmpfs *types.ServiceVolumeTmpfs) *mount.TmpfsOptions {
1301 if tmpfs == nil {
1302 return nil
1303 }
1304 return &mount.TmpfsOptions{
1305 SizeBytes: int64(tmpfs.Size),
1306 Mode: os.FileMode(tmpfs.Mode),
1307 }
1308}
1309
1310func buildImageOptions(image *types.ServiceVolumeImage) *mount.ImageOptions {
1311 if image == nil {

Callers 1

buildMountOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected