Make 'docker build' send non-err output to stdout

Right now 'docker build' will send:
   Sending build context to Docker daemon
to stderr, instead of stdout.  This PR fixes that.

I looked in the rest of api/client/commands.go for other cases
that might do this and only one jumped out at me:
  https://github.com/docker/docker/blob/master/api/client/commands.go#L2202
but I think if I changed that to go to stdout then it'll mess people up
who are expecting just the container ID to be printed to the screen and
there is no --quiet type of flag we can check.

Closes #9404

Signed-off-by: Doug Davis <dug@us.ibm.com>
Merge pull request #9512 from duglin/Issue9404

Make 'docker build' send non-err output to stdout
Deprecating ResolveRepositoryName

Passing RepositoryInfo to ResolveAuthConfig, pullRepository, and pushRepository

Moving --registry-mirror configuration to registry config

Created resolve_repository job

Repo names with 'index.docker.io' or 'docker.io' are now synonymous with omitting an index name.

Adding test for RepositoryInfo

Adding tests for opts.StringSetOpts and registry.ValidateMirror

Signed-off-by: Don Kjer <don.kjer@gmail.com>

gofmt changes

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Fixing search term use of repoInfo

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Adding integration tests for registry mirror configuration

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Normalizing LookupImage image name to match LocalName parsing rules

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Normalizing repository LocalName to avoid multiple references to an official image

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Fixing merge issue

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Removing errorOut use in tests

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Removing TODO comment

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Removing unused StringSetOpts

Signed-off-by: Don Kjer <don.kjer@gmail.com>

gofmt changes

Signed-off-by: Don Kjer <don.kjer@gmail.com>

golint comments cleanup.  renaming RegistryOptions => registry.Options, and RegistryServiceConfig => registry.ServiceConfig

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Splitting out builtins.Registry and registry.NewService calls

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Stray whitespace cleanup

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Moving integration tests for Mirrors and InsecureRegistries into TestNewIndexInfo unit test

Signed-off-by: Don Kjer <don.kjer@gmail.com>

gofmt changes.  removing unused logging line

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Factoring out ValidateRepositoryName from NewRepositoryInfo

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Fixing broken integration tests

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Fixing broken unit test after rebase

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Merging IsSecure changes

Signed-off-by: Don Kjer <don.kjer@gmail.com>

More --insecure merge integration

Signed-off-by: Don Kjer <don.kjer@gmail.com>

Removing unused IndexServerURL

Signed-off-by: Don Kjer <don.kjer@gmail.com>
Allowing json marshaling of ServiceConfig.  Exposing ServiceConfig in /info

Signed-off-by: Don Kjer <don.kjer@gmail.com>
Switching to CamelCase for json marshaling

Signed-off-by: Don Kjer <don.kjer@gmail.com>