Build the Docker image:
docker build --tag peterstory/zenmap:latest .
Thanks to Marc Reichelt:
First, setup XQuartz:
- Install XQuartz
- Enable "Allow connections from network clients" in Preferences, Security
- Restart XQuartz
Next, enable connections to XQuartz and run the Docker image with:
xhost + 127.0.0.1
docker run -e DISPLAY=host.docker.internal:0 peterstory/zenmap:latest