Unable to loging/push/pull from docker registry

I have got the registry:2 running on my Ubuntu box and nothing can login/push/pull in/to/from it.
I have tested from both another Ubuntu box and my Mac.
If I try to login from my Mac I get: “getsockopt: no route to host”

If I try to login from Ubuntu I get: “getsockopt: connection refused”

I have a valid certificate installed.

All three machines are running on the same network.
I have created a new bridge to that the docker contianers run on a different network (192.168).
The host is on 172.18.
Here is the host ip config:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:50:56:a3:05:ca brd ff:ff:ff:ff:ff:ff
inet 172.18.19.167/14 brd 172.18.19.255 scope global ens160
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fea3:5ca/64 scope link
valid_lft forever preferred_lft forever
36: bridge0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 2a:a6:14:f6:04:be brd ff:ff:ff:ff:ff:ff
inet 192.168.5.1/24 scope global bridge0
valid_lft forever preferred_lft forever
inet6 fe80::a4b8:23ff:fec7:35d2/64 scope link
valid_lft forever preferred_lft forever
37: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:25:53:e8:56 brd ff:ff:ff:ff:ff:ff
inet 172.20.0.1/16 scope global docker0
valid_lft forever preferred_lft forever

My Mac and the Ubuntu box are on 172.17.

I have installed registry:2 on an EC2 instance and it worked.
What is the problem? It is fustrating me so much since I can’t find a solution anywhere.

Docker Version:

Client:
Version: 17.03.1-ce
API version: 1.27
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:14:09 2017
OS/Arch: linux/amd64

Server:
Version: 17.03.1-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:14:09 2017
OS/Arch: linux/amd64
Experimental: false

Docker Info:

Containers: 8
Running: 8
Paused: 0
Stopped: 0
Images: 12
Server Version: 17.03.1-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 82
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 4ab9917febca54791c5f071a9d1f404867857fcc
runc version: 54296cf40ad8143b62dbcaa1d90e520a2136ddfe
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-78-generic
Operating System: Ubuntu 16.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 992.3 MiB
Name: dockerregistry
ID: WU7U:KFM4:3342:T7ZO:BFBB:HJKJ:YKYH:J6VL:ANEJ:3WYE:LHMF:FEEH
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 66
Goroutines: 61
System Time: 2017-05-22T12:04:15.66152957+01:00
EventsListeners: 1
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false