29392

Error response from daemon: getsockopt: connection refused

When I try to pull an image from a private Docker Registry I get the error

Error response from daemon: Get https://XX.XX.XX.XXX:5000/v1/_ping: dial tcp XX.XX.XX.XXX:5000: getsockopt: connection refused

The docker registry is definitely listening on the correct port. Running

ss --listen --tcp -n -p

Gives the result

State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 *:22 *:* LISTEN 0 128 :::22 :::* LISTEN 0 128 :::5000 :::*

Does anyone have any suggestions for how to solve this problem? I'm really stumped by it!

Thanks in advance!

Answer1:

I had the same issue, seems like it related to certificates on your registry host. Check here on how to fix that: https://github.com/docker/docker/issues/23620

Recommend

  • Can't see logs of kubernetes pod
  • Is it possible to open port in Azure Linux Web App
  • How to setup a Jenkins pipeline for postman tests
  • gradle build local works. In docker container it doesn't. WHY?
  • How to set copy all environment variables from root user to another specific user
  • How to deploy AngularJS app using nginx + docker to Elastic Beanstalk?
  • Twilio Say Verb during a phone call
  • Parsing JSON Lines with Alamofire/Codable
  • Can't see contacts that was saved with phonegap on android
  • volume not getting mounted in nginx container
  • How to resize QWidget added in QGraphicScene through QGraphicsProxy?
  • Change Ubuntu locale in Docker
  • How can I configure logtash to use “stdout” as input?
  • Where can I configure the start user UID for Docker containers?
  • ('Unable to complete the operation against any hosts', {})
  • Error response from daemon: network myapp not found
  • How do I disable filebeat's close_inactive setting?
  • PDO connection to MySQL database refused
  • Cannot log in using SQL authentication ONLY from a remote server
  • Asterisk IVR After Hangup
  • Golang Build in docker not finding local import
  • How to mount volume into the source code of the app?
  • How can I set the buffer size for the underneath Socket UDP?
  • does the FROM directive in a dockerfile allways pull the latest version of an image
  • Creating new docker-machine instance always fails validating certs using openstack driver
  • How to update docker-compose on Docker for Windows?
  • error in docker build publish plugin
  • Installing SSL on AWS EC2 Bitnami Mean Stack
  • CORS with socket.io
  • Prevent Tomcat from caching request during starup
  • Web.config system.webserver errors
  • Check for zero lines output from command over SSH
  • nonblocking BIO_do_connect blocked when there is no internet connected
  • Access Android Market through SSH tunnel
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Display Images one by one with next and previous functionality
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • 0x202A in filename: Why?
  • File not found error Google Drive API