mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
27c76522de
Avoid creating a global context object that will be used while the daemon is running. Not only this object won't ever be garbage collected, but it won't ever be used for anything else than creating other contexts in each request. I think it's a bad practive to have something like this sprawling aroud the code. This change removes that global object and initializes a context in the cases we don't have already one, like shutting down the server. This also removes a bunch of context arguments from functions that did nothing with it. Signed-off-by: David Calavera <david.calavera@gmail.com> |
||
---|---|---|
.. | ||
client.go | ||
common.go | ||
daemon.go | ||
daemon_linux.go | ||
daemon_none.go | ||
daemon_unix.go | ||
daemon_windows.go | ||
docker.go | ||
docker_windows.go | ||
flags.go | ||
flags_experimental.go | ||
flags_test.go | ||
README.md |
docker.go contains Docker's main function.
This file provides first line CLI argument parsing and environment variable setting.