Skip to content

Instantly share code, notes, and snippets.

@mreichelt
Last active June 26, 2023 01:53
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mreichelt/de62cc78e3d12993dc60140b2a43cee7 to your computer and use it in GitHub Desktop.
Save mreichelt/de62cc78e3d12993dc60140b2a43cee7 to your computer and use it in GitHub Desktop.
Run Firefox in Docker image on Mac with X11 forwarding to XQuartz
#!/bin/bash
# allow access from localhost
xhost + 127.0.0.1
# run firefox with X11 forwarding and keep running until it quits
docker run -e DISPLAY=host.docker.internal:0 jess/firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment