It managed to find workaround for it by creating the file /etc/docker/daemon.json and adding the insecure-registry
{
"insecure-registries" : [ "registry.xxx.com:5001" ]
}
Then reload the services:
#sudo systemctl daemon-reload
#systemctl restart snap.docker.dockerd.service
#systemctl status snap.docker.dockerd.service