you need to install XQuartz on Mac for GUI
docker-compose -f .devcontainer/docker-compose.yml build m1mac-opengl
# xhost local:root
xhost +localhost
xhost + local:
defaults write org.xquartz.X11 enable_iglx -bool YES
docker-compose -f .devcontainer/docker-compose.yml run m1mac-opengl /bin/bash
brew install freeglut
xeyes
glxgears