You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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