From 683d14ae4c6ed0321a8cfb650b60b955d256b217 Mon Sep 17 00:00:00 2001 From: Joao Fernandes Date: Wed, 4 Apr 2018 15:52:14 -0700 Subject: [PATCH] [2.2]Fix snippet to prepare Windows node --- .../2.2/guides/admin/configure/join-windows-worker-nodes.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/datacenter/ucp/2.2/guides/admin/configure/join-windows-worker-nodes.md b/datacenter/ucp/2.2/guides/admin/configure/join-windows-worker-nodes.md index 5e40d90303..92744200dc 100644 --- a/datacenter/ucp/2.2/guides/admin/configure/join-windows-worker-nodes.md +++ b/datacenter/ucp/2.2/guides/admin/configure/join-windows-worker-nodes.md @@ -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: ```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