Replies: 1 comment
-
Hi, there was a similar issue and left #9345 (comment) to fix it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to push images to a registry started in the testcontainers. I'm using java docker api to push images, tried manually as well, but I'm getting the same error.
The first test case will check if the repository is running and it works, it's the second test that fails.
I'm also able to fetch the catalogue from the repository using curl.
curl http://localhost:57025/v2/_catalog
{"repositories":[]}
Here is how you can replicate the issue.
when I run this I get the error
com.github.dockerjava.api.exception.DockerClientException: Could not push image: failed to do request: Head "https://localhost:57244/v2/busybox/blobs/sha256:31311c5853a22c04d692f6581b4faa25771d915c1ba056c74e5ec82606eefdfa": dial tcp [::1]:57244: connect: connection refused
I tried changing the host to
0.0.0.0 , the I get a different error
com.github.dockerjava.api.exception.DockerClientException: Could not push image: failed to do request: Head "https://0.0.0.0:60075/v2/busybox/blobs/sha256:9c0abc9c5bd3a7854141800ba1f4a227baa88b11b49d8207eadc483c3f2496de": http: server gave HTTP response to HTTPS client
Beta Was this translation helpful? Give feedback.
All reactions