moby--moby/docker
David Calavera 27c76522de Define a context per request.
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>
2015-09-24 18:44:53 -04:00
..
README.md
client.go
common.go
daemon.go Define a context per request. 2015-09-24 18:44:53 -04:00
daemon_linux.go
daemon_none.go
daemon_unix.go
daemon_windows.go
docker.go Clean up: show usage when global --help present 2015-09-23 05:17:03 -04:00
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.