Commit Graph

69 Commits

Author SHA1 Message Date
fe94d78afa Generate ContainerWait response from the swagger spec.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 85a0bd062d
Component: cli
2016-10-31 11:19:53 -04:00
e10d258b88 generate AuthResponse type from swagger spec.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: ca7404a80a
Component: cli
2016-10-31 11:16:03 -04:00
4a62b2cc8e Generate container update response from swagger spec.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 598e3a4874
Component: cli
2016-10-31 11:16:02 -04:00
bc55ba3a44 Use IDResponse for container create response.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: f8cdc5ae71
Component: cli
2016-10-31 11:16:02 -04:00
71efaf6beb Add an IDResponse type
Generated from a swagger spec and use it for container exec response

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: d4d914bd52
Component: cli
2016-10-31 11:16:02 -04:00
9557c883f5 Generate container create response from swagger spec.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: e0f7f8d0dd
Component: cli
2016-10-31 11:16:02 -04:00
d817915a4e Use a config to generate swagger api types
Moves the resposne types to a package under api/types

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 6dc945ab36
Component: cli
2016-10-31 11:13:41 -04:00
6fb78dfac2 Generate VolumesCreateRequest from the swagger spec.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 0325c474b8
Component: cli
2016-10-31 11:13:41 -04:00
daa7c9a587 Generate VolumeList response from the swagger spec
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 3e13296c4e
Component: cli
2016-10-31 11:13:41 -04:00
831fa2006f Merge pull request #27394 from Microsoft/jjh/runelevated
Windows: Hint to run client elevated
Upstream-commit: e9089b55ee
Component: cli
2016-10-28 11:25:04 -07:00
40e9e05c74 Allow providing a custom storage directory for docker checkpoints
Signed-off-by: boucher <rboucher@gmail.com>
Upstream-commit: a38761aba4
Component: cli
2016-10-28 07:56:05 -04:00
dbd3d8d8d3 Merge pull request #26718 from ncdc/add-logs-to-container-attach-options
Add Logs to ContainerAttachOptions
Upstream-commit: 4c7160ed7b
Component: cli
2016-10-27 13:32:50 -07:00
d6afd26ba8 Merge pull request #26402 from qudongfang/ensure_client_transport_be_closed
ensure transport.Client be closed
Upstream-commit: 49fa58a2e9
Component: cli
2016-10-26 11:51:51 -07:00
e2164724b1 Merge pull request #27702 from tonistiigi/net-builder0
add --network option for docker build
Upstream-commit: 70fbc5e0bb
Component: cli
2016-10-25 21:50:33 -07:00
1ba89e2590 add --network option for docker build
Signed-off-by: sandyskies <chenmingjie0828@163.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Upstream-commit: 01832cc0ab
Component: cli
2016-10-25 10:25:36 -07:00
2cd2223423 add docker network prune
`docker network prune` prunes unused networks, including overlay ones.
`docker system prune` also prunes unused networks.

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Upstream-commit: 171e533ba2
Component: cli
2016-10-25 06:43:54 +00:00
c2195d43eb Make experimental a runtime flag
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Upstream-commit: 31f5d9b543
Component: cli
2016-10-24 15:20:01 -07:00
ca3b5155d5 Generate api/types:Image from the swagger spec
and rename it to a more appropriate name ImageSummary.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: a6a247fdf9
Component: cli
2016-10-20 13:24:23 -07:00
731dd426a8 Add Logs to ContainerAttachOptions
Signed-off-by: Andy Goldstein <agoldste@redhat.com>
Upstream-commit: 27bab36800
Component: cli
2016-10-19 11:39:00 -04:00
58b052f94e API changes for service rollback and failure threshold
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
Upstream-commit: 671fe5c051
Component: cli
2016-10-18 10:09:30 -07:00
9315c00769 Windows: Hint to run client elevated
Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 8632280315
Component: cli
2016-10-14 10:42:04 -07:00
1409d06aeb client: deterministically resolve http scheme
The docker client has historically used Transport.TLSClientConfig to set
the scheme for the API client. A recent moved the resolution to use the
http.Transport directly, rather than save the TLSClientConfig state on a
client struct. This caused issues when mutliple calls made with a single
client would have this field set in the http package on pre-1.7
installations. This fix detects the presence of the TLSClientConfig once
and sets the scheme accordingly.

We still don't know why this issue doesn't happen with Go 1.7 but it
must be more deterministic in the newer version.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
Upstream-commit: 4d1a6a43cd
Component: cli
2016-10-11 15:53:14 -07:00
be553ef1f7 Merge pull request #26804 from stevvooe/clear-tlsconfig-unix-socket
client: pedantic checking of tlsconfig
Upstream-commit: bc55f969b0
Component: cli
2016-10-11 15:47:47 -07:00
6aa28a8fc2 Merge pull request #27232 from bfirsh/godoc-client
Add GoDoc for client package
Upstream-commit: 0594aa6ac2
Component: cli
2016-10-10 23:25:34 +02:00
26359b8452 Add GoDoc for client package
- Tightened up copy in README
- Make example in README a bit simpler
- Update README to point at GoDoc

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Upstream-commit: a41ec7d802
Component: cli
2016-10-10 09:27:07 +01:00
3347e290aa fix typo in client/errors.go comments
Signed-off-by: Deng Guangxing <dengguangxing@huawei.com>
Upstream-commit: afb60b86d7
Component: cli
2016-10-08 15:29:32 +08:00
367f25bf97 Merge pull request #23389 from Microsoft/jjh/credentialspec
Windows: Support credential specs
Upstream-commit: 2ba5d3a260
Component: cli
2016-10-07 18:32:44 +02:00
ae30bfae31 Windows: Support credential specs
Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 6bc667128a
Component: cli
2016-10-06 09:32:22 -07:00
38c3916d99 Updated the client/request.go sendClientRequest method to return a PermissionDenied error if the connection failed due to permissions.
Signed-off-by: Sean Rodman <srodman7689@gmail.com>

Updated the check for the permission error to use os.IsPermission instead of checking the error string. Also, changed the PermissionDenied method to just a new error.

Fixed a typo in client/request.go

Fixed Error name as specified by Pull request builder output.

Worked on making changes to the permissiondenied error.

Fixed typo

Signed-off-by: Sean Rodman <srodman7689@gmail.com>

Updated error message as requested.

Fixed the error as requested

Signed-off-by: Sean Rodman <srodman7689@gmail.com>
Upstream-commit: a318ab842a
Component: cli
2016-10-03 09:02:20 -05:00
bf09a06c6f Add DiskUsage method to SystemApiclient
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Upstream-commit: d7efdb095e
Component: cli
2016-09-29 07:42:53 -07:00
a476179204 Add subcommand prune to the container, volume, image and system commands
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Upstream-commit: da8eef56ce
Component: cli
2016-09-29 07:42:53 -07:00
d17ffe273d client: pedantic checking of tlsconfig
Under the convoluted code path for the transport configuration,
TLSConfig was being set even though the socket type is unix. This caused
other code detecting the TLSConfig to assume https, rather than using
the http scheme. This led to a situation where if `DOCKER_CERT_PATH` is
set, unix sockets start reverting to https. There is other odd behavior
from go-connections that is also reproduced here.

For the most part, we try to reproduce the side-effecting behavior from
go-connections to retain the current docker behavior. This whole mess
needs to ripped out and fixed, as this pile spaghetti is unnacceptable.

This code is way to convoluted for an http client. We'll need to fix
this but the Go API will break to do it.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
Upstream-commit: e7678f3a37
Component: cli
2016-09-27 16:27:48 -07:00
8cab1d4131 Merge pull request #26839 from tonistiigi/build-cache
Implement build cache based on history array
Upstream-commit: 18f54cb62b
Component: cli
2016-09-26 17:31:49 +00:00
1f2c1ccaf3 Merge pull request #25853 from jhorwit2/jah/event-refactor
Refactor to new engine-api events api 
Upstream-commit: 0da5e77c67
Component: cli
2016-09-24 11:07:12 +02:00
700f218052 ensures that transport.Client is closed while using cli.NewClient with *http.Client = nil.
Signed-off-by: qudongfang <qudongfang@gmail.com>
Upstream-commit: 9403a5b63e
Component: cli
2016-09-24 14:32:50 +08:00
3af0faba4d Implement build cache based on history array
Based on work by KJ Tsanaktsidis

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: KJ Tsanaktsidis <kjtsanaktsidis@gmail.com>
Upstream-commit: 9f20fabc69
Component: cli
2016-09-23 11:30:06 -07:00
92c2c018ea Refactor to new events api
Signed-off-by: Josh Horwitz <horwitzja@gmail.com>
Upstream-commit: 9acc93282e
Component: cli
2016-09-22 14:42:06 -04:00
412bbe39eb Move /x/net/context to context in docker client README
Signed-off-by: Josh Chorlton <jchorlton@gmail.com>
Upstream-commit: 59e38197ff
Component: cli
2016-09-22 18:45:23 +08:00
b3a642ff73 Merge pull request #26436 from stevvooe/remove-transport-package
client: remove transport package 
Upstream-commit: 8004cf1c10
Component: cli
2016-09-20 16:43:56 +02:00
0d757a87e7 client: remove transport package
This package doesn't really seem to do anything of real interest.
Removing it and replacing with a few helper functions. Most of this was
maintaining a fork of ctxhttp to support a mock that was unnecessary.

We could probably do with a further refactor of the client interface.
There is a lot of confusion of between transport, http layer and
application layer that makes for some awkward code. This change
improves the situation to the point where no breaking changes are
introduced.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
Upstream-commit: c648e163eb
Component: cli
2016-09-19 11:19:55 -07:00
9f2c286fe0 Windows: OCI process struct convergence
Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 6be7efbe30
Component: cli
2016-09-19 10:34:31 -07:00
f35e1280b5 Windows: stats support
Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 86c86fc166
Component: cli
2016-09-16 11:56:15 -07:00
b8d8e583b4 correct some nits in comments
Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: acb1fc424b
Component: cli
2016-09-15 12:17:58 +08:00
b87d5047a3 Add a README to the client's package…
… taken from the old engine-api project.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Upstream-commit: 62e14c713b
Component: cli
2016-09-12 11:41:11 +02:00
291889bdac tlsconfig: move Clone into proper package
Signed-off-by: Stephen J Day <stephen.day@docker.com>
Upstream-commit: c6f96cb8b4
Component: cli
2016-09-09 12:05:17 -07:00
92630b8067 client: don't hide context errors
Instead of reformatting error from the request action, we wrap it,
allowing the cause to be recovered. This is important for consumers that
need to be able to detect context errors, such as `Cancelled` and
`DeadlineExceeded`.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
Upstream-commit: 450b3123e3
Component: cli
2016-09-08 17:47:43 -07:00
eb96b2810d client: transport: fix tlsconfig Clone() on different Golang versions
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Upstream-commit: d675c81577
Component: cli
2016-09-08 17:55:54 +00:00
f7bdcb1297 Move engine-api client package
This moves the engine-api client package to `/docker/docker/client`.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Upstream-commit: 3fff6acaa1
Component: cli
2016-09-07 11:05:58 -07:00
858af44a04 Make dockerd debuggable
Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 969302c169
Component: cli
2016-04-26 09:35:22 -07:00
1eb8e79404 Windows: Add file version information
This change adds file version information to docker.exe and dockerd.exe by
adding a Windows version resource with the windres tool.

This change adds a dependency to binutils-mingw-w64 on Linux, but removes
a dependency on rsrc. Most Windows build environments should already have
windres if they have gcc (which is necessary to build dockerd).

Signed-off-by: John Starks <jostarks@microsoft.com>
Upstream-commit: 5c252a7914
Component: cli
2016-04-24 10:55:51 -07:00