Vincent Demeester
a859a33647
Use "on-failure" for both containers and services
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-07-07 11:32:19 +02:00
Vincent Demeester
50674ec107
Merge pull request #24053 from cpuguy83/mounts_default_writable
...
Change defaults for mount writable and volume copying
2016-07-07 11:18:14 +02:00
Brian Goff
56f3422468
Use newer default values for mounts CLI
...
In the API:
`Writable` changed to `ReadOnly`
`Populate` changed to `NoCopy`
Corresponding CLI options updated to:
`volume-writable` changed to `volume-readonly`
`volume-populate` changed to `volume-nocopy`
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-07-06 22:34:39 -04:00
Anil Madhavapeddy
2de9585f5e
make docker service --help
text for --endpoint-mode
more consistent
...
Previously:
```
--constraint value Placement constraints (default [])
--endpoint-mode string Endpoint mode(Valid values: vip, dnsrr)
<snip>
--restart-condition string Restart when condition is met (none, on_failure, or any)
```
Now:
```
--constraint value Placement constraints (default [])
--endpoint-mode string Endpoint mode (vip or dnsrr)
<snip>
--restart-condition string Restart when condition is met (none, on_failure, or any)
```
Signed-off-by: Anil Madhavapeddy <anil@docker.com>
2016-07-06 12:10:28 +01:00
Tõnis Tiigi
8fe6480c8a
Merge pull request #23584 from nishanttotla/private-images-swarm-services
...
Passing registry auth token for service create, update
2016-06-30 17:18:59 -07:00
Nishant Totla
538bac39d7
Adding a flag to specify sending of registry auth
...
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
2016-06-30 14:59:32 -07:00
Daniel Nephin
c8659d3cc5
Fix mount opts error message.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-29 15:14:55 -04:00
Brian Goff
e2a26744f9
Merge pull request #23697 from dongluochen/blockServiceModeChange
...
Do not allow service mode change
2016-06-27 10:53:53 -04:00
Brian Goff
4c2e1a9cb0
Fix panic due to nil bind options
...
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2016-06-24 11:57:17 -04:00
orkaa
1bdbfa5770
For the lulz! (evalulate -> evaluate)
...
Signed-off-by: orkaa <orkica@gmail.com>
2016-06-23 16:26:43 +02:00
Daniel Nephin
9d1f3373b3
add more flag constants to service update.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-20 11:03:36 -04:00
Dong Chen
72f7cebfb0
Block service mode change.
...
Signed-off-by: Dong Chen <dongluo.chen@docker.com>
2016-06-17 23:04:37 -07:00
Victor Vieux
8a0c5f1578
accept uppercase endpoint mode
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-06-17 19:06:12 -07:00
Daniel Nephin
c26e7d8c91
Fix String() for some option types
...
and add unit tests for them.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-16 10:09:14 -04:00
Vincent Demeester
0d8ad60e08
Merge pull request #23612 from icecrime/default_parallelism
...
Service `--update-parallelism` defauls to 0
2016-06-16 12:32:30 +02:00
Arnaud Porterie (icecrime)
f22d0174f3
Service --update-parallelism
defauls to 0
...
The `--update-parallelism` flaag should default to 0, which is
interpreted by the backend as unlimited. In other words, by default all
services should update simultaneously.
Signed-off-by: Arnaud Porterie (icecrime) <arnaud.porterie@docker.com>
2016-06-15 21:13:04 -07:00
Tom Barlow
bf988fc6ff
Change 'invald' to 'invalid' in volume opts errors
...
Signed-off-by: Tom Barlow <tomwbarlow@gmail.com>
2016-06-15 15:41:57 +01:00
Victor Vieux
1d380243fc
prevent some panics in 'service update'
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-06-14 15:37:27 -07:00
Daniel Nephin
1b2c59bf86
Use constants for flag names.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-14 16:43:56 -04:00
Victor Vieux
ffeb9fcb2a
fix 2 potential panics with mounts in swarm
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-06-14 09:25:39 -07:00
Daniel Nephin
12a00e6017
Add Swarm management CLI commands
...
As described in our ROADMAP.md, introduce new Swarm management commands
to call to the corresponding API endpoints.
This PR is fully backward compatible (joining a Swarm is an optional
feature of the Engine, and existing commands are not impacted).
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2016-06-13 22:17:15 -07:00