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>
Use ++ instead of += 1

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

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 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