Docker private registry push error "Get https://172.17.3.50:443/v2/: dial tcp 172.17.3.50:443: connect: no route to host"

I am trying to push a docker image to a private docker repository from ubuntu machine on local network.

When I go to the url https://172.17.3.50:443/v2/, everything looks fine. When I push an image to a private registry, I receive an error “Get https://172.17.3.50:443/v2/: dial tcp 172.17.3.50:443: connect: no route to host”

If the url works and the push doesn’t, the current Docker daemon must be running on another machine.
And the ip address seems to be in a similar subnet to the default Docker network which also could be the problem.

Search for “bip” and “default-address-pool” to change the Docker network