UCP-agent-win container fails to start with following error message.
fatal task error [module=node/agent/taskmanager node.id=pbb... task.id=d5gi3d... service.id=le77tl... error=starting container failed: container ad42fb49b7... encountered an error during CreateContainer: failure in a Windows system call: This application does not support the current operation on symbolic links. (0x5b8) extra info: ...
Create container failed with error: container ad42fb49b7... encountered an error during CreateContainer: failure in a Windows system call: This application does not support the current operation on symbolic links. (0x5b8) extra info: ...
Before performing these steps, you must meet the following requirements:
- UCP cluster is version 2.2 or above
- Docker EE engine is version 17.06 or above
- The rest of the UCP cluster with Linux managers and workers are functioning correctly
The error messages above may indicate issues on volumes. The following steps will clean up the Windows node and rejoin them to the UCP cluster.
From the Windows worker node, remove the Windows nodes from the swarm using Powershell:
PS> docker swarm leave
From the UCP Manager node, remove the ucp-agent-win service.
$ docker service rm ucp-agent-win
Removing the service will cause it to restart after 5 seconds.
On the Windows worker node, pull ucp-agent-win containers that match your UCP version.
PS> docker image pull docker/ucp-agent-win:<UCP_version> PS> docker image pull docker/ucp-dsinfo-win:<UCP_version>
C:/programData/docker/ucpdirectory if it exists.
Run the setup script to generate new UCP certificates.
PS> docker container run --rm docker/ucp-agent-win:<UCP_version> windows-script | powershell -noprofile -noninteractive -command 'Invoke-Expression -Command $input'
Go back to Manager node, and get a join token for worker.
$ docker swarm join-token worker> Alternatively, you can get join token from UCP Admin UI. Go to the Nodes section, and click Add Node button on right side.
On the Windows workers, execute the
joincommand from the previous step.