From d4047a2cb5fc59da87f2546b9504f6f4a8023673 Mon Sep 17 00:00:00 2001 From: Prashant Date: Fri, 21 Apr 2017 01:59:49 +0530 Subject: [PATCH] Update use-domain-names-to-access-services.md (#2943) * Update use-domain-names-to-access-services.md Fixed https://github.com/docker/docker.github.io/issues/2580 * Update use-domain-names-to-access-services.md --- .../services/use-domain-names-to-access-services.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/datacenter/ucp/2.1/guides/user/services/use-domain-names-to-access-services.md b/datacenter/ucp/2.1/guides/user/services/use-domain-names-to-access-services.md index 9dc2b47540..ac55915a60 100644 --- a/datacenter/ucp/2.1/guides/user/services/use-domain-names-to-access-services.md +++ b/datacenter/ucp/2.1/guides/user/services/use-domain-names-to-access-services.md @@ -95,8 +95,7 @@ to your services. The HTTP routing mesh can route to a service, as long as that service: -* Is attached to a network that has the `com.docker.ucp.mesh.http` label. You -can use the default `ucp-hrm` network or create your own +* Is attached to a network that has the `com.docker.ucp.mesh.http` label. You can use the default ucp-hrm network or create your own. * Publishes the ports that you want to route to * Has one or more labels with the prefix `com.docker.ucp.mesh.http`, specifying the ports to route to @@ -179,3 +178,13 @@ enabling the HTTP routing mesh: The HTTP routing mesh will route to all services in these networks, but services on different networks can't communicate directly. + +When using a UCP client bundle for an admin user, or a user with administrator privileges, +you can create an overlay network that contains the `com.docker.mesh.http` label by running the following command. + +```none +docker network create -d overlay --label com.docker.ucp.mesh.http=true new-hrm-network +``` + +If you're creating a a new HRM network you need to disable the HRM service first, or disable +and enable the HRM service after you create the network else HRM will not be available on new network.