mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 13:11:30 +00:00
Merge pull request #13160 from runcom/remove-api-codepath-less-than-1-12
Remove API codepaths < 1.12
This commit is contained in:
@@ -458,10 +458,8 @@ func (b *Builder) pullImage(name string) (*imagepkg.Image, error) {
|
||||
}
|
||||
|
||||
imagePullConfig := &graph.ImagePullConfig{
|
||||
Parallel: true,
|
||||
AuthConfig: pullRegistryAuth,
|
||||
OutStream: ioutils.NopWriteCloser(b.OutOld),
|
||||
Json: b.StreamFormatter.Json(),
|
||||
}
|
||||
|
||||
if err := b.Daemon.Repositories().Pull(remote, tag, imagePullConfig); err != nil {
|
||||
|
||||
+1
-2
@@ -45,7 +45,6 @@ type Config struct {
|
||||
Remove bool
|
||||
ForceRemove bool
|
||||
Pull bool
|
||||
JSONFormat bool
|
||||
Memory int64
|
||||
MemorySwap int64
|
||||
CpuShares int64
|
||||
@@ -142,7 +141,7 @@ func Build(d *daemon.Daemon, buildConfig *Config) error {
|
||||
}
|
||||
defer context.Close()
|
||||
|
||||
sf := streamformatter.NewStreamFormatter(buildConfig.JSONFormat)
|
||||
sf := streamformatter.NewStreamFormatter(true)
|
||||
|
||||
builder := &Builder{
|
||||
Daemon: d,
|
||||
|
||||
Reference in New Issue
Block a user