This is a Docker image that will run Firefox on XQuartz in macOS
866
This is a Docker image that will run Firefox on XQuartz in macOS
In order to run Xorg apps on macOS you will need to install xquartz:
brew install --cask --no-quarantine xquartz
And then configure it
defaults write org.xquartz.X11 nolisten_tcp -bool false
defaults write org.xquartz.X11 no_auth -bool false
defaults write org.xquartz.X11 enable_iglx -bool true
Create config file
mkdir -p ~/.xinitrc.d
cat << 'EOF' > ~/.xinitrc.d/xhost-config.sh
#!/bin/sh
xhost +127.0.0.1
xhost +localhost
xhost +\$(hostname)
EOF
chmod +x ~/.xinitrc.d/xhost-config.sh
open -a XQuartz
docker run -e DISPLAY=docker.internal:0 petedavidson887/xclock:0.0.1
docker build -t jrmgx/ubuntu-firefox .
docker run -it jrmgx/ubuntu-firefox
docker run -it jrmgx/ubuntu-firefox bin/bash
From here you can also install and run anything from the container.
Content type
Image
Digest
sha256:13667bcf9…
Size
195.4 MB
Last updated
7 months ago
docker pull jrmgx/ubuntu-firefox