Currently the daemon will not stop on error because the serve API job is blocking the channel wait for daemon init. A better way is to run the blocking serve API job as a goroutine and make sure that error notification gets back to the main daemon thread (using the already existing channel) so that clean shutdown can occur on error. Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp) |
||
|---|---|---|
| .. | ||
| README.md | ||
| client.go | ||
| daemon.go | ||
| docker.go | ||
| flags.go | ||
| log.go | ||
README.md
docker.go contains Docker's main function.
This file provides first line CLI argument parsing and environment variable setting.