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.
This commit is contained in:
Eiichi Kitagawa 2018-05-14 11:13:01 -07:00 committed by Joao Fernandes
parent 0769da0ca2
commit 64d1bf5020
1 changed files with 11 additions and 0 deletions

View File

@ -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