1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
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
..
client.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
common.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
daemon.go Define a context per request. 2015-09-24 18:44:53 -04:00
daemon_linux.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
daemon_none.go cli: new daemon command and new cli package 2015-07-23 19:44:46 -04:00
daemon_unix.go fix golint warnings/errors on pkg/system and pkg/stdcopy 2015-08-13 18:47:13 +08:00
daemon_windows.go Windows: Move daemon config directory 2015-07-30 12:39:19 -07:00
docker.go Clean up: show usage when global --help present 2015-09-23 05:17:03 -04:00
docker_windows.go Windows: Build docker.exe manifested and with icon 2015-06-04 11:49:10 -07:00
flags.go docker restarts running OR stopped containers, docs edit rm "running" 2015-09-20 09:16:27 -04:00
flags_experimental.go "docker network" missing from docker --help 2015-09-04 15:34:17 +09:00
flags_test.go Add test to check if subcommands are sorted 2015-08-07 01:34:21 -07:00
README.md Add README.md file for the docker directory 2014-05-20 09:04:46 +00:00

docker.go contains Docker's main function.

This file provides first line CLI argument parsing and environment variable setting.