mirror of https://github.com/docker/docs.git
Add labels to Windows nodes
This commit is contained in:
parent
64d1bf5020
commit
e00b4033c9
|
@ -26,9 +26,30 @@ Docker Enterprise Edition.
|
|||
|
||||
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 cluster with the token provided by the Docker EE web UI or CLI.
|
||||
1. Add a label to the node.
|
||||
2. Pull the Windows-specific image of `ucp-agent`, which is named `ucp-agent-win`.
|
||||
3. Run the Windows worker setup script provided with `ucp-agent-win`.
|
||||
4. Join the cluster with the token provided by the Docker EE web UI or CLI.
|
||||
|
||||
### Add a label to the node
|
||||
|
||||
Configure the Docker Engine running on the node to have a label. This makes
|
||||
it easier to deploy applications on nodes with this label.
|
||||
|
||||
Create the file `C:\ProgramData\docker\config\daemon.json` with the following
|
||||
content:
|
||||
|
||||
```
|
||||
{
|
||||
"labels": ["os=windows"]
|
||||
}
|
||||
```
|
||||
|
||||
Restart Docker for the changes to take effect:
|
||||
|
||||
```
|
||||
Restart-Service docker
|
||||
```
|
||||
|
||||
### Pull the Windows-specific images
|
||||
|
||||
|
|
Loading…
Reference in New Issue