I found some tricks with getting a Nomad dev environment working reliably on Mac, particularly a Apple Silicon Mac.
I found the main problem was with how Docker Desktop doesn't support IPv6, so if your Mac is connected to your network with a IPv6 address, Nomad will try to bound your containers to a IPv6 address which Docker Desktop can't handle.
Fix
- Verify that your Mac has IPv6 configured correctly
- Go to Settings > Wi-Fi > Click the "Details..." button next to your network
- Under "TCP/IP" set "Configure IPv6" to "Link-local only"
- Start Docker Desktop
- Start Nomad in a terminal (keep the terminal open in the background)
nomad agent -dev -bind 0.0.0.0 -network-interface=en0- Double check that Nomad is using an IPv4 address
- Visit http://localhost:4646/ in your browser
- Click "Clients" from the left sidebar
- Select the client, it should be named the same as your Mac's hostname
- Under "Attributes" check the
unique.network.ip-addressvalue, it should be an IPv4 address (if its a IPv6 address, check Step 1)
You might need to repeat Step 1 if you connect to a different Wi-Fi network.
For more information, see my Dev Environment notes.
Continue reading
Mac Dev Setup
My current macOS development setup guide, covering installing apps and configuring system settings
Apr 2025
·2 min read
Simple GitOps with Nomad
I was looking at a simple way to do GitOps with Nomad for my Homelab. Unlike the Kubernetes ecosystem, there doesn't seem to be many examples of GitOps workflows in Nomad.
Aug 2023
·4 min read