Docker Community Forums

Share and learn in the Docker community.

I am not able to run docker run hello-world after installing docker on windows server 2016 VM


(Rizwan Parkar) #1

Expected behavior

docker run hello-world should run properly

Actual behavior

getting below error when i run docker run hello-world

Unable to find image ‘hello-world:latest’ locally
C:\Program Files\Docker\docker.exe: Error response from daemon: Get https :// http: error connecting to proxy http ://username:password@proxy:port/: dial tcp: lookup tcp/port: getaddrinfow: The specified class was not found.
See ‘C:\Program Files\Docker\docker.exe run --help’.


installed docker on windows server 2016 using below command

  1. Installation

Install-Module -Name DockerMsftProvider -Force
Install-Package -Name docker -ProviderName DockerMsftProvider -Force
Restart-Computer -Force

then updated to version 17.05.0-ce because of connectivity issue

PS C:\Users\Administrator> docker version
Version: 17.05.0-ce
API version: 1.29
Go version: go1.7.5
Git commit: 89658be
Built: Fri May 5 15:36:11 2017
OS/Arch: windows/amd64

Version: 17.05.0-ce
API version: 1.29 (minimum version 1.24)
Go version: go1.7.5
Git commit: 89658be
Built: Fri May 5 15:36:11 2017
OS/Arch: windows/amd64
Experimental: false

PS C:\Users\Administrator> docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 17.05.0-ce
Storage Driver: windowsfilter
Logging Driver: json-file
Volume: local
Network: l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.1198.amd64fre.rs1_release_sec.170427-1353)
Operating System: Windows Server 2016 Standard
OSType: windows
Architecture: x86_64
CPUs: 1
Total Memory: 8GiB
Name: METRO2K16-03
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): false
Http Proxy: http://username:password@proxy:port/
Experimental: false
Insecure Registries:
Live Restore Enabled: false

Seem like i cant connect to docker hub from my windows server 2016 VM with docker installed.
what need to be done to get it working?

(Jasonbivins) #2

Hi, thanks for posting.

Does your network require you to go through a proxy before connecting to the internet?

(Rizwan Parkar) #3

yes… proxy was the culprit. set HTTP_PROXY, HTTPS_PROXY & NO_PROXY in environment variables and all good now :slight_smile:

(Jasonbivins) #4

I’m glad to hear it! Please let us know if you run into any more problems.


(Linus) #5


If you remove the Docker you installed and install it with the Edge version here You should be able to run Linux Container on Windows Server 2016.

When you run docker version, you should get linux/amd64 for Server, OS/Arch:

OS/Arch: linux/amd64

(Fam2905) #6

excuse me, how to configure that