-
Notifications
You must be signed in to change notification settings - Fork 288
Remote Windows Docker Desktop
Javier Romero edited this page Apr 9, 2022
·
2 revisions
On the remote Windows machine:
- In Docker,
Settings
→General
:- Check
Expose daemon on tcp://localhost:2375 without TLS
- Click
Apply & Restart
- Check
- local machine has an installed SSH key
ssh-add -l
On the remote Windows machine, in Administrator PowerShell:
- Enable SSH:
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 ; Get-Service sshd | Set-Service -StartupType Automatic
- Start SSH Service:
Start-Service sshd
On local machine, in terminal:
- Install local key on remote host:
ssh-copy-id <user>@<windows-host>
- Test connection:
docker -H ssh://<user>@<windows-host> info
- Set
DOCKER_HOST
:export DOCKER_HOST=ssh://<user>@<windows-host>
- Retest connection:
docker info
-
ngrok
- install via chocolatey:
choco install ngrok
- configure
- install via chocolatey:
On the remote Windows machine:
- In PowerShell,
ngrok tcp 2375