Commit Graph

4210 Commits

Author SHA1 Message Date
Yassine TIJANI 45b0e7cf1a fixing SIGSEGV when running containers
Signed-off-by: Yassine TIJANI <yasstij11@gmail.com>

moving the deffering of the close after the error checking

Signed-off-by: Yassine TIJANI <yasstij11@gmail.com>

fixing SIGSEGV when running containers

Signed-off-by: Yassine TIJANI <yasstij11@gmail.com>
2017-07-06 18:57:36 +02:00
Vincent Demeester 1aa82bc7df Merge pull request #211 from ksouf/issue-37-add-tests-on-commands
adding network_create tests
2017-07-06 08:59:15 +02:00
Aaron Lehmann e672589ec0 Merge pull request #296 from thaJeztah/fix-error-overwrite
Fix error variable being overwritten
2017-07-05 19:26:27 -07:00
khaled souf 57c1551991 adding unit tests to network
Signed-off-by: khaled souf <khaled.souf@gmail.com>
2017-07-06 00:54:30 +02:00
Sebastiaan van Stijn 4d4c789cac
Fix error variable being overwritten
The `err` variable was set in a loop, so only
the last result was taken into account to return
"failure" or not.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-07-05 13:54:57 -07:00
Brian Goff 30933b516b Merge pull request #286 from thaJeztah/bump-moby
Bump moby to 87df0e533b619c088091fd1e2310e92bb9a24822
2017-07-05 09:38:32 -04:00
Sebastiaan van Stijn e8080dd7e5
update tests for new image struct
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-07-04 20:34:24 -07:00
Sebastiaan van Stijn 366d3ec971 Bump moby to 87df0e533b619c088091fd1e2310e92bb9a24822
Includes changes from;

- Add a LastTagTime for images (https://github.com/moby/moby/pull/31497)
- Fix handling of remote "git@" notation (https://github.com/moby/moby/pull/33696)
- Move some `api` package functions away (https://github.com/moby/moby/pull/33798) (related to https://github.com/docker/cli/pull/236)
- Set ping version even on error (https://github.com/moby/moby/pull/33827)
- Do not add duplicate platform information to service spec (https://github.com/moby/moby/pull/33867)
- Refactor MountPoint Setup function in volume.go (https://github.com/moby/moby/pull/33890)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-07-04 20:23:38 -07:00
Vincent Demeester dc9feff879 Merge pull request #287 from thaJeztah/use-v1.0.0-tag-for-go-difflib
Use v1.0.0 tag for go-difflib
2017-07-04 17:32:00 +02:00
Daniel Nephin 3554d02f33 Merge pull request #276 from adshmh/add-unit-tests-to-checkpoint-package
add unit tests to checkpoint package
2017-07-04 11:17:25 -04:00
Vincent Demeester e08cb59c8a Merge pull request #288 from thaJeztah/bump-go-winio
Bump go-winio to 0.4.2
2017-07-04 16:59:32 +02:00
Victor Vieux 306212574a Merge pull request #248 from albers/completion-network-create--scope
Add bash completion for `network create --scope|--config-only|config-from`
2017-07-04 16:48:18 +02:00
Victor Vieux 1f45f1b5f9 Merge pull request #246 from albers/completion-prune--filter-label
Add bash completion for `label` filter of `prune` commands
2017-07-04 16:44:23 +02:00
Victor Vieux 42a31ff8c1 Merge pull request #282 from albers/completion-daemon-updates
Updates to bash completion for `dockerd`
2017-07-04 16:42:10 +02:00
Victor Vieux d47bbb8358 Merge pull request #285 from albers/completion-overlay2.size
Add bash completion for `dockerd --storage-opt overlay2.size`
2017-07-04 16:41:35 +02:00
Victor Vieux 43fb4a4547 Merge pull request #243 from vieux/scale2
add `--detach` to docker scale
2017-07-04 16:36:59 +02:00
Harald Albers 0ea31afd57 Add bash completion for `dockerd --metrics-addr`
`--metrics-addr` does not accept network interface names.
Therefore `__docker_local_interfaces` was refined for this feature to
optionally exclude interface names.

Note that although `--metrics-addr` is experimental, it cannot be
selectively enabled in bash completion because the test for the daemon
running in experimental mode requires a running daemon. As this
completion pertains to starting the daemon, this requirement is not met.

Signed-off-by: Harald Albers <github@albersweb.de>
2017-07-04 14:40:22 +02:00
Vincent Demeester 357ff50fa9 Merge pull request #289 from mstanleyjones/multiple-env
Provide examples for multiple uses of the same flag
2017-07-04 12:48:20 +02:00
Sebastiaan van Stijn 8df4cd1edc Merge pull request #292 from thaJeztah/clarify-docker-go-package
Clarify docker/go package
2017-07-03 23:44:26 -07:00
Sebastiaan van Stijn 98b7dbe908 Merge pull request #290 from mstanleyjones/d-and-rm-flags
Clarify that you can use -d and --rm together now
2017-07-03 23:43:36 -07:00
Sebastiaan van Stijn 60fe70c900
Clarify docker/go package
This package is used by Notary. Add a comment to
the vendor.conf file to explain what it contains
and what it's used for.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-07-03 18:00:46 -07:00
Misty Stanley-Jones c63485b47d Clarify that you can use -d and --rm together now
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
2017-07-03 16:43:41 -07:00
Misty Stanley-Jones ef61582591 Provide examples for multiple uses of the same flag
Signed-off-by: Misty Stanley-Jones <misty@docker.com>
2017-07-03 16:21:28 -07:00
Sebastiaan van Stijn 8a3c89b409
Bump go-winio to 0.4.2
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-07-03 14:37:56 -07:00
Sebastiaan van Stijn 42d83d20c9 Use v1.0.0 tag for go-difflib
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-07-03 11:42:28 -07:00
Harald Albers a4b1769bb6 Add bash completion for `dockerd --storage-opt overlay2.size`
This adds bash completion for
- https://github.com/docker/cli/pull/215
- https://github.com/moby/moby/pull/32977

Signed-off-by: Harald Albers <github@albersweb.de>
2017-07-03 18:03:00 +02:00
Vincent Demeester 85b41c3e71 Merge pull request #213 from dnephin/improve-swarm-ca-cmd
Refactor and UI changes to `swarm ca` command
2017-07-03 17:02:45 +02:00
Harald Albers 74a5d1af86 Add bash completion for `dockerd --cpu-rt-(period|runtime)`
This adds bash completion for https://github.com/moby/moby/pull/23430.

Signed-off-by: Harald Albers <github@albersweb.de>
2017-07-03 13:55:46 +02:00
Harald Albers d610951e85 Add bash completion for `dockerd --default-runtime`
`--default-runtime` was added in https://github.com/moby/moby/pull/22983

Signed-off-by: Harald Albers <github@albersweb.de>
2017-07-03 13:44:23 +02:00
Victor Vieux 58d3fc24b1 scale all services at once
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2017-07-03 13:40:54 +02:00
Harald Albers 112348d4db Add bash completion for `dockerd --no-new-privileges`
This adds bash completion for https://github.com/moby/moby/pull/32944.

Signed-off-by: Harald Albers <github@albersweb.de>
2017-07-03 13:33:01 +02:00
Harald Albers 5296907bef Add bash completion for `dockerd --version`
Signed-off-by: Harald Albers <github@albersweb.de>
2017-07-03 13:32:29 +02:00
Harald Albers cf3ffc516b Add bash completion for `dockerd --swarm-default-advertise-addr`
This adds bash completion for https://github.com/moby/moby/pull/24237.

Signed-off-by: Harald Albers <github@albersweb.de>
2017-07-03 13:09:43 +02:00
Arash Deshmeh b296abd542 add unit tests to cli/command/checkpoint package
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2017-06-30 17:17:47 -04:00
Daniel Nephin 379b762495 Merge pull request #273 from adshmh/add-unit-tests-to-task-package
add unit tests to task package
2017-06-30 11:41:24 -04:00
Vincent Demeester afcc75ddfe Merge pull request #268 from albers/completion-swarm-ca
Add bash completion for `swarm ca`
2017-06-30 11:42:28 +02:00
Harald Albers 22579ba56c Add bash completion for `network create --scope|--config-only|config-from`
Signed-off-by: Harald Albers <github@albersweb.de>
2017-06-30 11:01:45 +02:00
Vincent Demeester 9689ccab1b Merge pull request #269 from albers/completion-swarm-init--data-path-addr
Fix bash completion for `swarm init|join --data-path-addr`
2017-06-30 10:29:35 +02:00
Sebastiaan van Stijn b306817220 Merge pull request #250 from albers/completion-service-create--detach
Add bash completion for `service create --detach`
2017-06-30 01:16:19 -07:00
Sebastiaan van Stijn c726ccaf6c Merge pull request #256 from albers/completion-service-update-order
Add bash completion for `service create|update (update|rollback)-order`
2017-06-30 01:12:57 -07:00
Sebastiaan van Stijn 321c692868 Merge pull request #257 from albers/completion-service--network-add
Add bash completion for `service create|update --network-(add|rm)`
2017-06-30 01:11:22 -07:00
Sebastiaan van Stijn d1ccfcaf2a Merge pull request #251 from albers/completion-plugin-events
Add bash completion for plugin events
2017-06-30 01:02:53 -07:00
Sebastiaan van Stijn 495ab9b3e9 Merge pull request #254 from albers/completion-system-prune--volumes
Add bash completion for `system prune --volumes`
2017-06-30 01:01:14 -07:00
Sebastiaan van Stijn b45c7d614e Merge pull request #249 from albers/completion-fix-network-create--internal
Fix bash completion for `network create --internal`
2017-06-30 00:11:38 -07:00
Sebastiaan van Stijn 1c4d070cf5 Merge pull request #247 from albers/completion-service--entrypoint
Add bash completion for `service create|update --entrypoint`
2017-06-30 00:09:20 -07:00
Sebastiaan van Stijn 993b78d276 Merge pull request #239 from albers/completion-network-create--ingress
Add bash completion for `docker network create --ingress`
2017-06-30 00:05:44 -07:00
Sebastiaan van Stijn 0b050a599f Merge pull request #233 from dnephin/build-stdin-with-compress
Build stdin with compress
2017-06-29 18:38:55 -07:00
Sebastiaan van Stijn 40a636efc1 Merge pull request #244 from thaJeztah/tiny-builder-docs-improvements
Some builder docs improvements
2017-06-29 18:34:03 -07:00
Arash Deshmeh 244e28f41f add unit tests to task package
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2017-06-29 17:57:31 -04:00
Daniel Nephin 81e9837859 Refactor caCommand
Split out a swarmCAOptions struct for options that are shared between
the ca and update commands.

Change the 'no trust root' message to an error.

Add some unit tests.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-06-29 17:57:06 -04:00