Skip to content

Commit

Permalink
Merge pull request docker#460 from beornf/builder-cache-from
Browse files Browse the repository at this point in the history
Added image cache_from to builder options
  • Loading branch information
Vincent Demeester authored Sep 15, 2017
2 parents e24f3d5 + 61ee899 commit b2c0c6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type DaemonBuilder struct {
ForceRemove bool
Pull bool
BuildArgs map[string]*string
CacheFrom []string
LoggerFactory logger.Factory
}

Expand Down Expand Up @@ -96,6 +97,7 @@ func (d *DaemonBuilder) Build(ctx context.Context, imageName string) error {
Dockerfile: d.Dockerfile,
AuthConfigs: d.AuthConfigs,
BuildArgs: d.BuildArgs,
CacheFrom: d.CacheFrom,
})
if err != nil {
return err
Expand Down

0 comments on commit b2c0c6e

Please sign in to comment.