Skip to content

Commit 29bd420

Browse files
committed
fix: use docker version format when pulling images
1 parent 660fc64 commit 29bd420

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cli/pkg/compose/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (runner *Runner) RunCommand(arg ...string) error {
3737
log.Fatal("💥 failed to parse compose template: %v", err)
3838
}
3939

40-
err = tmpl.Execute(tmpFile, struct{ Version string }{Version: version.Version})
40+
err = tmpl.Execute(tmpFile, struct{ Version string }{Version: version.DockerVersion()})
4141
if err != nil {
4242
log.Fatal("💥 failed to execute compose template: %v", err)
4343
}

cli/pkg/version/version.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package version
22

33
import (
44
"fmt"
5+
"strings"
56
"time"
67
)
78

@@ -14,3 +15,7 @@ var (
1415
func BuildVersion() string {
1516
return fmt.Sprintf("%s %s (%s)", Version, CommitHash, time.Now().Format(time.DateTime))
1617
}
18+
19+
func DockerVersion() string {
20+
return strings.Replace(Version, "+", ".", 1)
21+
}

0 commit comments

Comments
 (0)