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

Function findVolumeByTarget

pkg/compose/create.go:949–956  ·  view source on GitHub ↗
(volumes []types.ServiceVolumeConfig, target string)

Source from the content-addressed store, hash-verified

947}
948
949func findVolumeByTarget(volumes []types.ServiceVolumeConfig, target string) *types.ServiceVolumeConfig {
950 for _, v := range volumes {
951 if v.Target == target {
952 return &v
953 }
954 }
955 return nil
956}
957
958// bindRequiresMountAPI check if Bind declaration can be implemented by the plain old Bind API or uses any of the advanced
959// options which require use of Mount API

Callers 1

buildContainerVolumesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected