After setting up a private docker registry on a server within my network, I'm not able to push images to it. Setup was done as following:
/certs
on the registry server (192.xxx) and placed .cert
and .key
files there192.xxx example.com
example.com/my-image
and tried to pushBut I'm always getting the error Get https://example.com/v2/ Bad Gateway
What am I doing wrong?
I think you need to authenticate to the repository you are trying to push the image to. Docker Command: docker login <address_to_your_repository>
. It should prompt you for credentials.
The docker documentation shows that docker registry is started on port 5000, while your tag/push seems to not take that into account.
I would try to 2 things:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.