Docker Community Forums

Share and learn in the Docker community.

Docker run : "getsockopt: connection refused"

docker

(Dockeridn2000gee) #1

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/: 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
sudo yum install docker-ce
sudo systemctl start docker
sudo docker run hello-world

Additional information