Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 679d24a

Browse files
committed
ignore image we can't build when forcing PullPolicyBuild
close #1776 Signed-off-by: Nicolas De Loof <[email protected]>
1 parent bbe9c6b commit 679d24a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cli/cmd/compose/create.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ func (opts createOptions) GetTimeout() *time.Duration {
104104
func (opts createOptions) Apply(project *types.Project) {
105105
if opts.Build {
106106
for i, service := range project.Services {
107+
if service.Build == nil {
108+
continue
109+
}
107110
service.PullPolicy = types.PullPolicyBuild
108111
project.Services[i] = service
109112
}

0 commit comments

Comments
 (0)