# Docker run : "getsockopt: connection refused"

**URL:** <https://forums.docker.com/t/docker-run-getsockopt-connection-refused/52271>\
**Category:** General\
**Tags:** docker\
**Created:** [June 12, 2018, 12:47pm UTC](https://forums.docker.com/t/docker-run-getsockopt-connection-refused/52271 "2018-06-12T12:47:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dockeridn2000gee](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@dockeridn2000gee](https://forums.docker.com/u/dockeridn2000gee)\
**Post date:** [June 12, 2018, 12:47pm UTC](https://forums.docker.com/t/docker-run-getsockopt-connection-refused/52271/1 "2018-06-12T12:47:36Z")

</div>

Hi, after banging my head around for some time, I still can’t manage to get the following command working, thanks in advance!

$sudo docker run hello-world

Unable to find image ‘hello-world:latest’ locally docker: Error response from daemon: Get [https://registry-1.docker.io/v2/:](https://registry-1.docker.io/v2/:) dial tcp 52.54.216.153:443: getsockopt: connection refused. See ‘docker run --help’.

I am using **CentOS7** virtual machine on VirtualBox with HTTP/HTTPS/FTP proxy settings configured at system level. This proxy configuration has been working fine for Chrome and other applications.

Here is the version of Docker on my virtual machine:

$sudo docker version

Client:  
Version: 18.03.1-ce  
API version: 1.37  
Go version: go1.9.5  
Git commit: 9ee9f40  
Built: Thu Apr 26 07:20:16 2018  
OS/Arch: linux/amd64  
Experimental: false  
Orchestrator: swarm

Server:  
Engine:  
Version: 18.03.1-ce  
API version: 1.37 (minimum version 1.12)  
Go version: go1.9.5  
Git commit: 9ee9f40  
Built: Thu Apr 26 07:23:58 2018  
OS/Arch: linux/amd64  
Experimental: false

Steps to reproduce:

sudo yum install -y yum-utils device-mapper-persistent-data lvm2  
sudo yum-config-manager --add-repo [https://download.docker.com/linux/centos/docker-ce.repo](https://download.docker.com/linux/centos/docker-ce.repo)  
sudo yum install docker-ce  
sudo systemctl start docker  
sudo docker run hello-world

Additional information
