This happened because Systems, Privacy and Security, Local Network allows application to access the local network and you need to turn it on for Docker.