The swarm scope network connected containers with autostart enabled there was a dependency problem with the cluster to be initialized before we can autostart them. With the current container restart code happening before cluster init, these containers were not getting autostarted properly. Added a fix to delay the container start of those containers which has atleast one swarm scope endpoint to until after the cluster is initialized. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com> Upstream-commit: c9fb551d60584ac4ad01561e2f56b7b7cc9483b9 Component: engine
docker.go contains Docker daemon's main function.
This file provides first line CLI argument parsing and environment variable setting.