RichardFeynman
RichardFeynman

Reputation: 533

Unable to build docker Image, connection refused

I am trying to build my first Docker Image and am encountering the error below.

For what its worth I also tried to access the urls via curl and got similar results. Not sure what I am missing.

Do I need some type of credentials to pull in the main image?

$ docker build -t springio/gs-spring-boot-docker .
Sending build context to Docker daemon  2.048kB
Step 1/4 : FROM openjdk:8-jdk-alpine
Get "https://registry-1.docker.io/v2/": dial tcp 44.207.51.64:443: connect: connection refused

$ curl https://registry-1.docker.io/v2/
curl: (56) Received HTTP code 403 from proxy after CONNECT

Upvotes: 0

Views: 3896

Answers (2)

 RichardFeynman
RichardFeynman

Reputation: 533

This answer solved part of my problem: Can't docker pull - connection refused

After that I also needed to get .docker.io white listed for my proxy.

Upvotes: 0

BaDos
BaDos

Reputation: 72

Did you try to reboot docker deamon and try to run build again?

Can you just pull this image?

docker pull openjdk:8-jdk-alpine

Upvotes: 1

Related Questions