Docker Community Forums

Share and learn in the Docker community.

Can#t access internet, Ubuntu 18.04, Docker version 18.03.1-ce,


(Labor123) #1

Dear All,

at my coproarte computer, I installed Ubunto 18.04 and Docker version 18.03.1-ce. unfortunately, I can’t access the docker daemon. Has somebody an idea? I am really desperate

labor@inf-bildanalyse-01:~$ docker run hello-world
Unable to find image ‘hello-world:latest’ locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: Bad Request.
See ‘docker run --help’.

labor@inf-bildanalyse-01:~$ systemctl show --property=Environment docker
Environment=HTTP_PROXY=http://proxy.charite.de:80/ NO_PROXY=localhost,127.0.0.1,docker-registry.charite.de HTTPS_PROXY=https://proxy.charite.de:80/


(Labor123) #2

Further information:
labor@inf-bildanalyse-01:~$ systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/docker.service.d
└─http-proxy.conf
Active: active (running) since Mon 2018-07-23 05:37:33 EDT; 31min ago
Docs: https://docs.docker.com
Main PID: 10135 (dockerd)
Tasks: 94
CGroup: /system.slice/docker.service
├─10135 /usr/bin/dockerd -H fd://
└─10163 docker-containerd --config /var/run/docker/containerd/containerd.toml

Jul 23 05:51:04 inf-bildanalyse-01 dockerd[10135]: time=“2018-07-23T05:51:04.205776410-04:00” level=error msg=“Handler for POST /v1.37/images/create returned error: Get https://registry-1.docker.io/v2/: Bad Request”
Jul 23 05:51:17 inf-bildanalyse-01 dockerd[10135]: time=“2018-07-23T05:51:17.831726929-04:00” level=warning msg=“Error getting v2 registry: Get https://registry-1.docker.io/v2/: Bad Request”
Jul 23 05:51:17 inf-bildanalyse-01 dockerd[10135]: time=“2018-07-23T05:51:17.831802737-04:00” level=info msg=“Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/: Bad Request”
Jul 23 05:51:17 inf-bildanalyse-01 dockerd[10135]: time=“2018-07-23T05:51:17.831849764-04:00” level=error msg=“Handler for POST /v1.37/images/create returned error: Get https://registry-1.docker.io/v2/: Bad Request”
Jul 23 05:51:29 inf-bildanalyse-01 dockerd[10135]: time=“2018-07-23T05:51:29.730558386-04:00” level=warning msg=“Error getting v2 registry: Get https://registry-1.docker.io/v2/: Bad Request”
Jul 23 05:51:29 inf-bildanalyse-01 dockerd[10135]: time=“2018-07-23T05:51:29.730631003-04:00” level=info msg=“Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/: Bad Request”
Jul 23 05:51:29 inf-bildanalyse-01 dockerd[10135]: time=“2018-07-23T05:51:29.730676623-04:00” level=error msg=“Handler for POST /v1.37/images/create returned error: Get https://registry-1.docker.io/v2/: Bad Request”
Jul 23 05:58:13 inf-bildanalyse-01 dockerd[10135]: time=“2018-07-23T05:58:13.096694316-04:00” level=warning msg=“Error getting v2 registry: Get https://registry-1.docker.io/v2/: Bad Request”
Jul 23 05:58:13 inf-bildanalyse-01 dockerd[10135]: time=“2018-07-23T05:58:13.096768520-04:00” level=info msg=“Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/: Bad Request”
Jul 23 05:58:13 inf-bildanalyse-01 dockerd[10135]: time=“2018-07-23T05:58:13.096823865-04:00” level=error msg=“Handler for POST /v1.37/images/create returned error: Get https://registry-1.docker.io/v2/: Bad Request”

labor@inf-bildanalyse-01:~/pytorch_fnet$ ./docker/build_pytorch_fnet.sh
Sending build context to Docker daemon 237.7MB
Step 1/7 : FROM pytorch/pytorch:v0.2
Get https://registry-1.docker.io/v2/: Bad Request


(Dielenb) #3

Your company proxy is probably not allowing access to the Docker websites.
Ask them to open up

download.docker.com (for installation of Docker)
*.cloudflare.docker.com (for pulling images from the Docker hub)

good luck!