Previously on error either from the daemon or from the api it is just exiting with exit status 1 but not performing a shutdown. This can produce insconsistent state depending on where the error came from. This makes sure that before we exit on error that the engine gets fully shutdown. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: 0e3f2f2ac07c69922bd837f864219a088d243248 Component: engine
docker.go contains Docker's main function.
This file provides first line CLI argument parsing and environment variable setting.