Running Factomd on Mac is not very common or well supported, but it should be possible. YMMV.

Install Docker for Mac using the following guide: https://docs.docker.com/docker-for-mac/install/

After installation you should be able to follow the rest of the guide, with a few modifications.