mirror of https://github.com/docker/docs.git
Merge pull request #8355 from docker/windows-node-label
Removed step for adding Windows nodes label
This commit is contained in:
commit
3a128d0e44
|
|
@ -28,30 +28,13 @@ Docker Enterprise 2.1.
|
||||||
|
|
||||||
Follow these steps to configure the docker daemon and the Windows environment.
|
Follow these steps to configure the docker daemon and the Windows environment.
|
||||||
|
|
||||||
1. Add a label to the node.
|
1. Pull the Windows-specific image of `ucp-agent`, which is named `ucp-agent-win`.
|
||||||
2. 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. Run the Windows worker setup script provided with `ucp-agent-win`.
|
3. Join the cluster with the token provided by the Docker UCP web interface or CLI.
|
||||||
4. Join the cluster with the token provided by the Docker UCP web interface or CLI.
|
|
||||||
|
|
||||||
### Add a label to the node
|
### Add a label to the node
|
||||||
|
|
||||||
Configure the Docker Engine running on the node to have a label. This makes
|
As of Docker Enterprise 2.1, which includes UCP 3.1, this step is no longer necessary. Windows nodes are automatically assigned the `ostype` label `ostype=windows`.
|
||||||
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
|
### Pull the Windows-specific images
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue