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

Method recreateStrategy

cmd/compose/create.go:134–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132}
133
134func (opts createOptions) recreateStrategy() string {
135 if opts.noRecreate {
136 return api.RecreateNever
137 }
138 if opts.forceRecreate {
139 return api.RecreateForce
140 }
141 if opts.noInherit {
142 return api.RecreateForce
143 }
144 return api.RecreateDiverged
145}
146
147func (opts createOptions) dependenciesRecreateStrategy() string {
148 if opts.noRecreate {

Callers 2

runUpFunction · 0.80
runCreateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected