I am having issue with Docker on Ubuntu 18.04 with docker-ce. While pulling a container:
$ docker pull nginx
or while trying to login
$ docker login
I get the following message:
Error response from daemon: Get https://registry-1.docker.io/v2/: proxyconnect tcp: tls: oversized record received with length 20527
I also purged and reinstalled today with latest version but it didn't help. Does anyone get it resolved?
Run docker logout
and try again.
If fails then run docker login
with username
(not email) and password
, this should resolve the issue.
I had the same issue yesterday. Since I am behind a company proxy, I had to define the http-proxy for the docker daemon in:
/etc/systemd/system/docker.service.d/http-proxy.conf
The problem was, that I misconfigured the https_proxy, how it is described here. I used https:// in the https_proxy environment variable, which caused this error.
This configuration works for me:
cat /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment=http_proxy=http://IP:PORT/
Environment=no_proxy=localhost,127.0.0.1
Environment=https_proxy=http://IP:PORT/
Remember that you have to restart the docker daemon after changing this configuration. You can achieve this by using:
systemctl daemon-reload
systemctl restart docker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With