Docker private registry push error "Get dial tcp 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, everything looks fine. When I push an image to a private registry, I receive an error “Get dial tcp 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