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

Function buildImageOptions

pkg/compose/create.go:1310–1317  ·  view source on GitHub ↗
(image *types.ServiceVolumeImage)

Source from the content-addressed store, hash-verified

1308}
1309
1310func buildImageOptions(image *types.ServiceVolumeImage) *mount.ImageOptions {
1311 if image == nil {
1312 return nil
1313 }
1314 return &mount.ImageOptions{
1315 Subpath: image.SubPath,
1316 }
1317}
1318
1319func (s *composeService) ensureNetwork(ctx context.Context, project *types.Project, name string, n *types.NetworkConfig) (string, error) {
1320 if n.External {

Callers 1

buildMountOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected