Merge pull request #13160 from runcom/remove-api-codepath-less-than-1-12

Remove API codepaths < 1.12
This commit is contained in:
Alexander Morozov
2015-05-12 13:08:36 -07:00
10 changed files with 64 additions and 220 deletions
-2
View File
@@ -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
View File
@@ -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,