Browse Source

swarm

master
test2 5 years ago
parent
commit
2824f8b96b
  1. 9
      DockerSwarm/Creaate-Swarm.adoc

9
DockerSwarm/Creaate-Swarm.adoc

@ -262,9 +262,9 @@ docker node inspect id | jq -r '.[]["Status"]["State"]'
To deploy an application image when Docker Engine is in swarm mode, you *create a service.*
A service is the image for a microservice within the context of some larger application.
A *service* is the image for a microservice within the context of some larger application.
Examples of services might include an HTTP server, a database, or any other type of executable program that you wish to run in a distributed environment.
`_Examples of services might include an HTTP server, a database, or any other type of executable program that you wish to run in a distributed environment._`
@ -273,7 +273,7 @@ A *task* is the atomic unit of scheduling within a swarm.
When you declare a desired service state by creating or updating a service, the orchestrator realizes the desired state by scheduling tasks.
For instance, you define a service that instructs the orchestrator to keep three instances of an HTTP listener running at all times.
`_For instance, you define a service that instructs the orchestrator to keep three instances of an HTTP listener running at all times. _`
The orchestrator responds by creating three tasks.
@ -457,6 +457,7 @@ networks:
----
.replicas-vs-global
image:./replicated-vs-global.png[alt="replica-vs-global"] +
@ -490,7 +491,7 @@ docker stack deploy -c run.yml my_service
----
==== Lists services
==== List services
.List the services that are running as part of the specified stack.
[source,sh]

Loading…
Cancel
Save