Skip to content

Commit

Permalink
fix the inconsistency handling between infra image and normal task image
Browse files Browse the repository at this point in the history
  • Loading branch information
Huan Wang committed Dec 9, 2020
1 parent bbf1eaa commit ba95a8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/docker/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,11 @@ func (d *Driver) SetConfig(c *base.Config) error {
}

d.config = &config
// Remove any http
if strings.HasPrefix(d.config.InfraImage, "https://") {
d.config.InfraImage = strings.Replace(d.config.InfraImage, "https://", "", 1)
}

if len(d.config.GC.ImageDelay) > 0 {
dur, err := time.ParseDuration(d.config.GC.ImageDelay)
if err != nil {
Expand Down

0 comments on commit ba95a8f

Please sign in to comment.