Commit Graph

73 Commits

Author SHA1 Message Date
Victor Vieux eb88068f93 refactor code: move filter/ and strategy/ out of scheduler and create a simple
scheduler interface.

Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:20:37 -08:00
Andrea Luzzardi a445ed952e Merge pull request #365 from vieux/add_cpus_mem
Add cpus mem
2015-02-13 11:24:07 -08:00
Victor Vieux ba7195c1e6 add number of container per node
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-10 23:21:17 +00:00
Victor Vieux 3f625de35c show reserved resources
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-10 19:09:31 +00:00
Victor Vieux a51ec6a8b1 add CPUS, Total Memory in docker info
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-10 19:09:31 +00:00
Victor Vieux 7401789862 closeIdleConnections to prevent leaks with https
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-10 01:32:16 +00:00
Pierre Wacrenier 16f5945439 Fix race condition on exec
Signed-off-by: Pierre Wacrenier <pierre.wacrenier@gmail.com>
2015-02-05 01:40:40 +01:00
Victor Vieux fb167e9511 require ps -a to show swarm containers
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-03 02:09:45 +00:00
Victor Vieux e38b06fbe8 add VERSION file
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-03 01:53:01 +00:00
Victor Vieux 7c504dc58b add gitcommit to version
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-03 01:15:00 +00:00
Victor Vieux ad8f7facf7 add missing status codes
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-27 14:28:54 -08:00
Victor Vieux 231ded20e0 improve some logs
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-26 23:41:56 +00:00
Andrea Luzzardi cafbc6df28 Improve container state refresh.
Currently, container inspection is performed only on creation (or during
exec by the API).

The problem is that certain informations such as NetworkSettings are not
available during creation, therefore we must inspect the containers
during other events.

This change refactors a bit the API so that RefreshContainer() and
RefreshContainers() now accept a `full` flag to force a deep refresh.

The node event handler in turn uses that flag whenever a container
starts or dies.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-26 13:39:52 -08:00
Andrea Luzzardi c2d527c9c6 Merge pull request #269 from vieux/add_stats
add docker stats support
2015-01-21 17:31:04 -08:00
Victor Vieux 2e968d7800 add support for history, inspect for images and improve inspect for containers
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-22 00:49:02 +00:00
Victor Vieux 027f8ed44a add docker rename support
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-21 23:51:36 +00:00
Victor Vieux adad1f0f75 add docker stats support
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-21 23:28:41 +00:00
Victor Vieux 741c2848f4 add docker images support
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-19 22:02:32 +00:00
Victor Vieux 7260a66886 use HealthFilter
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-15 19:32:48 +00:00
Victor Vieux 93d63a3fea add search and login
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-15 19:19:09 +00:00
Victor Vieux 32c135314d fix headers
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-15 00:59:38 +00:00
Victor Vieux a0f3f3440b fix inspect
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-14 22:33:24 +00:00
Pierre Wacrenier 044b332759 createRouter doesn't yield errors
Signed-off-by: Pierre Wacrenier <pierre.wacrenier@gmail.com>
2015-01-13 02:02:01 +01:00
Andrea Luzzardi 94cf009e46 Container: Make Node public instead of exposing it through Node().
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-12 08:14:11 -08:00
Victor Vieux 3dfc92639c add docker cp support
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-09 00:34:29 +00:00
Victor Vieux 20018ff141 add tls to hijack as well
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-07 01:56:45 +00:00
Victor Vieux 6552c7c884 fix proxy function with TLS
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-07 01:55:56 +00:00
Victor Vieux d364332bb6 Merge pull request #200 from vieux/exec_support
docker exec support
2015-01-06 17:54:04 -08:00
Victor Vieux ea171b3243 add more fields to /version
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-06 00:27:46 +00:00
Victor Vieux aefe450036 add exec support
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-31 00:19:13 +00:00
Victor Vieux b7e2482e4d Merge pull request #198 from vieux/attach_support
docker run -i -t  / attach support
2014-12-30 11:35:10 -08:00
Victor Vieux 7aad288ba4 refactor code for exec coming later
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-30 19:34:20 +00:00
Victor Vieux efe72934a6 add some documentation and Node field
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-29 20:01:37 +00:00
Victor Vieux 9f75d0eb37 add node name, ID and IP
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-24 01:23:18 +00:00
Victor Vieux 174f664b3f fix attach
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-23 02:20:13 +00:00
Victor Vieux 2365ec79e6 attach support
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-23 00:23:20 +00:00
Victor Vieux 5edf3ceeb2 log all errors
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-23 00:13:26 +00:00
Victor Vieux 93f35e6c97 proxy status codes
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-19 21:44:14 +00:00
Victor Vieux 6e39962998 -addr -> multiple -H + unix
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-15 23:02:23 +00:00
Victor Vieux ebf33b3429 log.Println -> log.Debugf
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-12 21:37:06 +00:00
Victor Vieux aebec2890a proxy simple requests
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-12 19:50:40 +00:00
Andrea Luzzardi 39fe73a231 TLS support.
TLS authentication support between the CLI and Swarm but also between
Swarm and the Docker nodes.

Closes #148.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-12-09 13:43:25 -08:00
Victor Vieux 21ee7e1a13 error when name already exists in docker run
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-09 00:18:22 +00:00
Victor Vieux 541cb74e84 error when docker run without -d
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-08 21:43:03 +00:00
Victor Vieux 926e8e11f1 add --api-enable-cors on swarm manage
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-06 23:04:08 +00:00
Andrea Luzzardi ad5040c9f4 Set the container status to pending if the underlying host is not healthy
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-12-02 17:46:22 -08:00
Victor Vieux f7fed9a7bd add tests for events 2014-11-25 02:14:29 +00:00
Victor Vieux 1f74cb5809 remove races 2014-11-21 01:36:30 +00:00
Victor Vieux dd05044b96 add version 2014-11-21 00:18:06 +00:00
Victor Vieux 20319a5049 use ID and names 2014-11-20 19:03:55 +00:00