MCPcopy Index your code
hub / github.com/docker/compose / buildVolumeOptions

Function buildVolumeOptions

pkg/compose/create.go:1288–1298  ·  view source on GitHub ↗
(vol *types.ServiceVolumeVolume)

Source from the content-addressed store, hash-verified

1286}
1287
1288func buildVolumeOptions(vol *types.ServiceVolumeVolume) *mount.VolumeOptions {
1289 if vol == nil {
1290 return nil
1291 }
1292 return &mount.VolumeOptions{
1293 NoCopy: vol.NoCopy,
1294 Subpath: vol.Subpath,
1295 Labels: vol.Labels,
1296 // DriverConfig: , // FIXME missing from model ?
1297 }
1298}
1299
1300func buildTmpfsOptions(tmpfs *types.ServiceVolumeTmpfs) *mount.TmpfsOptions {
1301 if tmpfs == nil {

Callers 1

buildMountOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…