Update service-clusters.md

This commit is contained in:
paigehargrave
2019-01-24 17:05:48 -05:00
committed by GitHub
parent cfa7e2d4d3
commit 9c8dc62810

View File

@@ -45,7 +45,7 @@ map[nodetype:loadbalancer region:us-west]
Next, we will create a configuration object for Interlock that contains multiple extensions with varying service clusters:
```bash
$> cat << EOF | docker config create com.docker.ucp.interlock.conf-1 -
$> cat << EOF | docker config create com.docker.ucp.interlock.service-clusters.conf-1 -
ListenAddr = ":8080"
DockerURL = "unix:///var/run/docker.sock"
PollInterval = "3s"
@@ -115,7 +115,11 @@ Next we will create a dedicated network for Interlock and the extensions:
$> docker network create -d overlay ucp-interlock
```
Now we can create the Interlock service:
Now we can create the Interlock service.
Important: The `--name` value specified in the following code sample applies to UCP versions 3.0.10 and later, and versions 3.1.4 and later.
If you are working with UCP version 3.0.0 - 3.0.9 or 3.1.0 - 3.1.3, specify `--name ucp-interlock-service-clusters`.
```bash
$> docker service create \
@@ -123,7 +127,7 @@ $> docker service create \
--mount src=/var/run/docker.sock,dst=/var/run/docker.sock,type=bind \
--network ucp-interlock \
--constraint node.role==manager \
--config src=com.docker.ucp.interlock.conf-1,target=/config.toml \
--config src=com.docker.ucp.interlock.service-clusters.conf-1,target=/config.toml \
{{ page.ucp_org }}/ucp-interlock:{{ page.ucp_version }} run -c /config.toml
sjpgq7h621exno6svdnsvpv9z
```