Skip to content

Commit

Permalink
Strip _ce from docker version if added by some linux distros, fixes d…
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay authored Feb 23, 2021
1 parent 737f5cd commit 78d2e2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/dockerutil/dockerutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ func CheckDockerVersion(versionConstraint string) error {
if err != nil {
return fmt.Errorf("no docker")
}
// If docker version has "_ce", remove it. This happens on OpenSUSE Tumbleweed at least
currentVersion = strings.TrimSuffix(currentVersion, "_ce")
dockerVersion, err := semver.NewVersion(currentVersion)
if err != nil {
return err
Expand Down

0 comments on commit 78d2e2e

Please sign in to comment.