From 64d1bf5020c8ba6f89cbfd24249eb2deae2c5086 Mon Sep 17 00:00:00 2001 From: Eiichi Kitagawa Date: Mon, 14 May 2018 11:13:01 -0700 Subject: [PATCH] Adding "windows" label to Windows node. (#6368) * Adding "windows" label to Windows node. Additional steps to add label to Windows Nodes. This will allow admin to filter Windows node when creating a service like this. `docker service create --constraint engine.labels.os==windows --name winonly microsoft/nanoserver` The same steps are on this article: https://success.docker.com/article/how-can-i-assign-a-service-to-windows-nodes-only * wrong environment variable fixed. --- .../admin/configure/join-windows-worker-nodes.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/datacenter/ucp/2.2/guides/admin/configure/join-windows-worker-nodes.md b/datacenter/ucp/2.2/guides/admin/configure/join-windows-worker-nodes.md index e8e3e097ba..5430ed2641 100644 --- a/datacenter/ucp/2.2/guides/admin/configure/join-windows-worker-nodes.md +++ b/datacenter/ucp/2.2/guides/admin/configure/join-windows-worker-nodes.md @@ -33,6 +33,17 @@ Follow these steps to configure the docker daemon and the Windows environment. 1. Pull the Windows-specific image of `ucp-agent`, which is named `ucp-agent-win`. 2. Run the Windows worker setup script provided with `ucp-agent-win`. 3. Join the swarm with the token provided by the UCP web UI. +4. Create a file `daemon.json`. +5. Paste following content and save it under `$env:ProgramData\Docker\config\` + ``` + { + "labels": ["os=windows"] + } + ``` +6. Restart the docker service. + ``` + Restart-Service docker + ``` ### Pull the Windows-specific images