mirror of https://github.com/docker/docs.git
[2.2]Fix snippet to prepare Windows node
This commit is contained in:
parent
3a08079a03
commit
683d14ae4c
|
@ -59,7 +59,9 @@ You need to open ports 2376 and 12376, and create certificates
|
||||||
for the Docker daemon to communicate securely. Run this command:
|
for the Docker daemon to communicate securely. Run this command:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
docker container run --rm {{ page.ucp_org }}/ucp-agent-win:{{ page.ucp_version }} windows-script | powershell -noprofile -noninteractive -command 'Invoke-Expression -Command $input'
|
$script = [ScriptBlock]::Create((docker run --rm {{ page.ucp_org }}/ucp-agent-win:{{ page.ucp_version }} windows-script | Out-String))
|
||||||
|
|
||||||
|
Invoke-Command $script
|
||||||
```
|
```
|
||||||
|
|
||||||
> Docker daemon restart
|
> Docker daemon restart
|
||||||
|
|
Loading…
Reference in New Issue