Skip to content

Instantly share code, notes, and snippets.

@bureado
Last active April 29, 2016 20:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bureado/24e0d6b1e13c6f9a50b6 to your computer and use it in GitHub Desktop.
Save bureado/24e0d6b1e13c6f9a50b6 to your computer and use it in GitHub Desktop.
Using docker client with a Windows Server Container Preview docker daemon in Azure (no TLS)

Deploy the VM and setup endpoint

  • In portal.azure.com, go to New -> Compute -> Marketplace and search for Windows Server Container Preview.
  • Make sure the TCP 2375 endpoint is open in Azure (Settings -> Endpoint)

Enable Docker daemon networking

  • Access the VM via RDP
  • Edit C:\ProgramData\Docker\runDockerDaemon.cmd, and add -H 0.0.0.0:2375 on line 11, in the docker daemon invocation inside the run target
  • Enable docker.exe in the firewall: netsh advfirewall firewall add rule name="Allow Docker" dir=in action=allow program="C:\windows\system32\docker.exe"
  • Restart the docker service with sc stop docker and sc start docker

Connect from a Docker client

  • docker -H tcp://<IP>:2375 run -it windowsservercore:latest cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment