Handle error from GetDevice early

Also more verbose error.

Fixes panic from #7701

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Fix panic in validate context for build

Fixes #7611

Signed-off-by: Michael Crosby <michael@docker.com>
Updating LxcConf to match Docker command line

I've changed LxcConf on a previous API document. Not sure why it keeps getting changed back. I'm seeing Docker 1.2.0 command-line calls are still using the array of key/values.

Docker-DCO-1.1-Signed-off-by: getvictor <victor@victoreda.com> (github: SvenDowideit)
Fix the other API docs to use an array of key/values

as per #7706

Docker-DCO-1.1-Signed-off-by: SvenDowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
Use ++ instead of += 1

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Remove redundant elses

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Style fixes for registry/registry.go

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Bump docs and api to 1.15

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Merge pull request #7615 from crosbymichael/fix-utils-panic

Fix panic in validate context for build
Fix panic for DOCKER_HOST without ://

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Fix race condition between cleanup and Start

There was problem when Start might be before cleanup

Fixes #6904

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Merge pull request #7702 from LK4D4/fix_panic_on_bad_device_#7701

Handle error from GetDevice early
Merge pull request #7642 from LK4D4/style_fixes

Style fixes for daemon package
Merge pull request #7744 from LK4D4/fix_race_cleanup_start_#6904

Fix race condition between cleanup and Start
Merge pull request #7745 from LK4D4/fix_docker_host_panic

Fix panic for DOCKER_HOST without ://
Merge pull request #7735 from SvenDowideit/lxcconf-api-docs

Lxcconf api docs
Merge pull request #7741 from LK4D4/bump_docs_to_1.15

Bump docs and api to 1.15
Merge pull request #7740 from LK4D4/registry_style

Style fixes for registry/registry.go
move some io related utils to pkg/ioutils

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
pkg/ioutils: add WriteCloserWrapper

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)