update service create and update options in commandline documentation

Signed-off-by: zebrilee <zebrilee@gmail.com>
This commit is contained in:
zebrilee 2017-07-31 23:26:02 +02:00
parent 2d5f9d83e7
commit 5fe09164f5
2 changed files with 10 additions and 5 deletions

View File

@ -21,9 +21,10 @@ Usage: docker service create [OPTIONS] IMAGE [COMMAND] [ARG...]
Create a new service Create a new service
Options: Options:
--config config Specify configurations to expose to the service
--constraint list Placement constraints --constraint list Placement constraints
--container-label list Container labels --container-label list Container labels
--credential-spec Credential spec for managed service account (Windows only) --credential-spec credential-spec Credential spec for managed service account (Windows only)
-d, --detach Exit immediately instead of waiting for the service to converge (default true) -d, --detach Exit immediately instead of waiting for the service to converge (default true)
--dns list Set custom DNS servers --dns list Set custom DNS servers
--dns-option list Set DNS options --dns-option list Set DNS options
@ -49,8 +50,9 @@ Options:
--mode string Service mode (replicated or global) (default "replicated") --mode string Service mode (replicated or global) (default "replicated")
--mount mount Attach a filesystem mount to the service --mount mount Attach a filesystem mount to the service
--name string Service name --name string Service name
--network list Network attachments --network network Network attachments
--no-healthcheck Disable any container-specified HEALTHCHECK --no-healthcheck Disable any container-specified HEALTHCHECK
--no-resolve-image Do not query the registry to resolve image digest and supported platforms
--placement-pref pref Add a placement preference --placement-pref pref Add a placement preference
-p, --publish port Publish a port as a node port -p, --publish port Publish a port as a node port
-q, --quiet Suppress progress output -q, --quiet Suppress progress output

View File

@ -22,11 +22,13 @@ Update a service
Options: Options:
--args command Service command args --args command Service command args
--config-add config Add or update a config file on a service
--config-rm list Remove a configuration file
--constraint-add list Add or update a placement constraint --constraint-add list Add or update a placement constraint
--constraint-rm list Remove a constraint --constraint-rm list Remove a constraint
--container-label-add list Add or update a container label --container-label-add list Add or update a container label
--container-label-rm list Remove a container label by its key --container-label-rm list Remove a container label by its key
--credential-spec Credential spec for managed service account (Windows only) --credential-spec credential-spec Credential spec for managed service account (Windows only)
-d, --detach Exit immediately instead of waiting for the service to converge (default true) -d, --detach Exit immediately instead of waiting for the service to converge (default true)
--dns-add list Add or update a custom DNS server --dns-add list Add or update a custom DNS server
--dns-option-add list Add or update a DNS option --dns-option-add list Add or update a DNS option
@ -59,9 +61,10 @@ Options:
--log-opt list Logging driver options --log-opt list Logging driver options
--mount-add mount Add or update a mount on a service --mount-add mount Add or update a mount on a service
--mount-rm list Remove a mount by its target path --mount-rm list Remove a mount by its target path
--network-add list Add a network --network-add network Add a network
--network-rm list Remove a network --network-rm list Remove a network
--no-healthcheck Disable any container-specified HEALTHCHECK --no-healthcheck Disable any container-specified HEALTHCHECK
--no-resolve-image Do not query the registry to resolve image digest and supported platforms
--placement-pref-add pref Add a placement preference --placement-pref-add pref Add a placement preference
--placement-pref-rm pref Remove a placement preference --placement-pref-rm pref Remove a placement preference
--publish-add port Add or update a published port --publish-add port Add or update a published port
@ -80,7 +83,7 @@ Options:
--rollback-failure-action string Action on rollback failure ("pause"|"continue") --rollback-failure-action string Action on rollback failure ("pause"|"continue")
--rollback-max-failure-ratio float Failure rate to tolerate during a rollback --rollback-max-failure-ratio float Failure rate to tolerate during a rollback
--rollback-monitor duration Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h) --rollback-monitor duration Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h)
--rollback-order string Rollback order ("start-first"|"stop-first") (default "stop-first") --rollback-order string Rollback order ("start-first"|"stop-first")
--rollback-parallelism uint Maximum number of tasks rolled back simultaneously (0 to roll back all at once) --rollback-parallelism uint Maximum number of tasks rolled back simultaneously (0 to roll back all at once)
--secret-add secret Add or update a secret on a service --secret-add secret Add or update a secret on a service
--secret-rm list Remove a secret --secret-rm list Remove a secret