Not abel to push docker image to hub

Hi , i’m trying to push image on hub but getting below error

docker push 192.168.x.x:5000/test-alpine:v1
The push refers to repository [192.168.x.x:5000/test-alpine]
Get “https://192.168.x.x:5000/v2/”: http: server gave HTTP response to HTTPS client

Note : daemon.json contains following
path of daemon.josn file on windows
“insecure-registries”:[“192.168.x.x:5000”]
C:\Users\abc\Desktop\ProgramData\docker\config\daemon.json
Can anyone tell me , what am i missing
docker version - 24.0.7

The error message you’re seeing suggests that your Docker client is trying to push an image to a Docker registry using HTTPS, but the registry is not configured to handle HTTPS requests. This can happen if you’re running a registry without a proper SSL certificate and your Docker daemon is not configured to treat the registry as an insecure registry.

Add the registry to your daemon.json file.

{
  "insecure-registries" : ["192.168.162.125:5000"]
}

Thanks for the reply but that is added still getting error

Did you restart the Docker service? Normally when you change configuration file you reload the service.

1 Like