Qiang Huang
2e02077e9f
Remove duplicated OomKilldisable
...
It's in Resources, but wrongly added back to HostConfig in
https://github.com/docker/docker/pull/18762
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com >
2015-12-24 15:28:56 +08:00
Antonio Murdaca
b0be88c111
Merge pull request #18878 from calavera/conditional_load_response
...
Make `docker load` to output json when the response content type is json.
2015-12-24 01:11:54 +01:00
Daniel Nephin
83237aab2b
Remove package pkg/ulimit, use go-units instead.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2015-12-23 13:27:58 -05:00
Daniel Nephin
5adbea7075
Move ulimit options to runconfig opts
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2015-12-23 13:27:58 -05:00
Zhang Wei
26dd026bd7
Add filter for network ls to hide predefined net
...
Add filter support for `network ls` to hide predefined network,
then user can use "docker network rm `docker network ls -f type=custom`"
to delete a bundle of userdefined networks.
Signed-off-by: Zhang Wei <zhangwei555@huawei.com >
2015-12-23 13:26:40 +08:00
David Calavera
9fd2c0feb0
Make docker load to output json when the response content type is json.
...
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-22 19:00:27 -05:00
David Calavera
7ac4232e70
Move Config and HostConfig from runconfig to types/container.
...
- Make the API client library completely standalone.
- Move windows partition isolation detection to the client, so the
driver doesn't use external types.
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-22 13:34:30 -05:00
David Calavera
747dccde41
Remove usage of runconfig.ConvertKVStringsToMap in the API client library.
...
It's a very simple function that we can duplicate.
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-22 13:31:46 -05:00
David Calavera
839f73c302
Move ExecConfig to types.
...
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-22 13:31:46 -05:00
David Calavera
056e744903
Replace usage of pkg/nat with go-connections/nat.
...
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-22 13:31:46 -05:00
David Calavera
0aab83d996
Move blkiodev package to types.
...
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-22 13:31:46 -05:00
David Calavera
f9b857a200
Move StrSlice to types.
...
This is a very docker concept that nobody elses need.
We only maintain it to keep the API backwards compatible.
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-22 13:31:43 -05:00
Alexander Morozov
1a8e8f2967
Merge pull request #18830 from calavera/tls_verify_godoc
...
Add godoc comment about client tls verification.
2015-12-21 10:02:32 -08:00
Alexander Morozov
42460b6772
Merge pull request #17692 from vdemeester/images-format
...
Add --format support to images command
2015-12-21 09:57:29 -08:00
David Calavera
4e2c0f385c
Add godoc comment about client tls verification.
...
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-21 12:55:37 -05:00
Vincent Demeester
34a3c3cacf
Add --format support to images command
...
- rename `api/client/ps` to `api/client/formatter`
- add a a image formatter
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
2015-12-21 17:38:07 +01:00
Boaz Shuster
60b4db7eb1
Change the quiet flag behavior in the build command
...
Right now, the quiet (-q, --quiet) flag ignores the output
generated from within the container.
However, it ought to be quiet in a way that all kind
of diagnostic output should be ignored, unless the build
process fails.
This patch makes the quiet flag behave in the following way:
1. If the build process succeeds, stdout contains the image ID
and stderr is empty.
2. If the build process fails, stdout is empty and stderr
has the error message and the diagnostic output of that process.
If the quiet flag is not set, then everything goes to stdout
and error messages, if there are any, go to stderr.
Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com >
2015-12-21 16:38:50 +02:00
Vincent Demeester
bb853137be
Fix the api/client/ps unit tests.
...
TestFormat was depending on the time so (comparing again
1970-01-01).. at some point it was bounded to fail >_<. Updating it to
be *not* time-dependent :).
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
2015-12-21 11:07:14 +01:00
Doug Davis
7ff61dd592
Merge pull request #18779 from aditirajagopal/18750-new-string-method
...
pkg/version.Version: use the new String() method
2015-12-18 21:21:17 -05:00
Alexander Morozov
58ebc71272
Merge pull request #18763 from calavera/fix_raw_inspect
...
Print the raw inspected elements when there is no template for `docker inspect`.
2015-12-18 15:25:38 -08:00
Aditi Rajagopal
278e75800c
pkg/version.Version: use the new String() method
...
Resolves #18750
Signed-off-by: Aditi Rajagopal <arajagopal@us.ibm.com >
2015-12-18 15:29:32 -05:00
Antonio Murdaca
92605b823d
Merge pull request #18761 from anusha-ragunathan/add-build-routes
...
Create build router separate from image router.
2015-12-18 21:09:43 +01:00
Vincent Demeester
b714e03fdd
Merge pull request #18771 from runcom/authz-fixes-1
...
authZ: more fixes
2015-12-18 17:58:02 +01:00
Vincent Demeester
64d70de0a2
Merge pull request #18721 from tiborvass/remove-dependencies-from-builder
...
Remove image and daemon dependencies from builder
2015-12-18 17:19:55 +01:00
Brian Goff
b708a2249b
Merge pull request #18730 from calavera/remove_sockets_dependency
...
Remove api client lib dependency on tlsconfig and sockets packages.
2015-12-18 10:35:51 -05:00
Antonio Murdaca
5a64c8027e
authZ: more fixes
...
- fix naming and formatting
- provide more context when erroring auth
- do not capitalize errors
- fix wrong documentation
- remove ugly remoteError{}
Signed-off-by: Antonio Murdaca <runcom@redhat.com >
2015-12-18 16:29:01 +01:00
Antonio Murdaca
47060efdb7
Merge pull request #18741 from WeiZhang555/debug-info
...
Better debug message for post form data
2015-12-18 16:06:07 +01:00
David Calavera
1f5674363e
Print the raw inspected elements when there is no template for docker inspect.
...
Otherwise we're ignoring the fields that Swarm adds to the output.
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-17 23:17:52 -05:00
Anusha Ragunathan
f8dc044aec
Create build router separate from image router.
...
Signed-off-by: Anusha Ragunathan <anusha@docker.com >
2015-12-17 16:56:11 -08:00
David Calavera
defd1519f7
Remove api client lib dependency on tlsconfig and sockets packages.
...
- Let consumers to configure the http transport initially and apply or
defaults on top.
- Add function to initialize a new client based on environment
variables, useful for integrators.
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-17 19:04:49 -05:00
Tibor Vass
03a170c48d
builder: remove daemon dependency in ContainerCreate()
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2015-12-17 16:57:08 +01:00
Vincent Demeester
0f749ad55a
Merge pull request #18559 from ahmetalpbalkan/return-container-networks
...
Proposal: Add container networks list to /containers/json
2015-12-17 10:11:18 +01:00
Zhang Wei
aaf65a47a7
Better debug message for post form data
...
Print json format instead of default `%q`
Signed-off-by: Zhang Wei <zhangwei555@huawei.com >
2015-12-17 15:55:39 +08:00
David Calavera
905f3336b2
Merge pull request #15964 from duglin/APIVersion
...
Add a DOCKER_API_VERSION env var
2015-12-16 14:23:47 -08:00
Tonis Tiigi
eeb2d4c1ad
Clean up reference type switches
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2015-12-16 11:58:53 -08:00
Tonis Tiigi
c1040b222c
Remove unused repoinfo
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2015-12-16 11:58:52 -08:00
Tonis Tiigi
ffded61dad
Update Named reference with validation of conversions
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2015-12-16 11:58:52 -08:00
Tonis Tiigi
2655954c2d
Add own reference package wrapper
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2015-12-16 11:58:52 -08:00
David Calavera
b44b5bbc8b
Merge pull request #18682 from calavera/replace_units_package
...
Replace pkg/units with docker/go-units.
2015-12-16 10:48:59 -08:00
David Calavera
4fef42ba20
Replace pkg/units with docker/go-units.
...
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-16 12:26:49 -05:00
Antonio Murdaca
38f409d283
api: client: lib: fix go vet
...
Signed-off-by: Antonio Murdaca <runcom@redhat.com >
2015-12-16 12:00:48 +01:00
David Calavera
e98cae4919
Move filters package to the API.
...
These filters are only use to interchange data between clients and daemons.
They don't belong to the parsers package.
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-15 18:13:26 -05:00
David Calavera
52fd30079a
Merge pull request #18685 from calavera/remove_timeutils
...
Move timeutils functions to the only places where they are used.
2015-12-15 15:11:18 -08:00
David Calavera
7bb30e0aeb
Merge pull request #18676 from dnephin/more_registry_types_to_api
...
Move registry.SearchResult types to api/types/registry
2015-12-15 12:00:24 -08:00
David Calavera
27220ecc6b
Move timeutils functions to the only places where they are used.
...
- Move time json marshaling to the jsonlog package: this is a docker
internal hack that we should not promote as a library.
- Move Timestamp encoding/decoding functions to the API types: This is
only used there. It could be a standalone library but I don't this
it's worth having a separated repo for this. It could introduce more
complexity than it solves.
Signed-off-by: David Calavera <david.calavera@gmail.com >
2015-12-15 14:56:14 -05:00
Jess Frazelle
2180dd6cf0
Merge pull request #18617 from tiborvass/cleanup-builder
...
Cleanup builder: remove container package dependency
2015-12-15 09:59:29 -08:00
Brian Goff
ce0b1841c8
Merge pull request #17034 from rhvgoyal/volume-propagation
...
Capability to specify per volume mount propagation mode
2015-12-15 12:14:41 -05:00
Jess Frazelle
adf1ffd53b
Merge pull request #18416 from toli/disable-official-repo-check-in-push
...
Removing the restriction to push to an 'official' repo
2015-12-15 08:52:36 -08:00
Daniel Nephin
c4472b389d
Move registry.SearchResult types to api/types/registry.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
2015-12-15 11:44:20 -05:00
Tibor Vass
2a2d1f57b5
dockerfile: get rid of Commit and CommitConfig
...
Signed-off-by: Tibor Vass <tibor@docker.com >
(cherry picked from commit 400e4922cbd004b93774fc55005f74bd8a995242)
2015-12-15 17:23:40 +01:00