mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
ignore image we can't build when forcing PullPolicyBuild
close https://github.com/docker/compose-cli/issues/1776 Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
bbe9c6bcfd
commit
679d24a178
@ -104,6 +104,9 @@ func (opts createOptions) GetTimeout() *time.Duration {
|
||||
func (opts createOptions) Apply(project *types.Project) {
|
||||
if opts.Build {
|
||||
for i, service := range project.Services {
|
||||
if service.Build == nil {
|
||||
continue
|
||||
}
|
||||
service.PullPolicy = types.PullPolicyBuild
|
||||
project.Services[i] = service
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user