Sign inSign up

jrmgx/ubuntu-firefox

By jrmgx

•Updated 7 months ago

This is a Docker image that will run Firefox on XQuartz in macOS

Image
0

866

jrmgx/ubuntu-firefox repository overview

⁠Ubuntu Firefox

This is a Docker image that will run Firefox on XQuartz in macOS

⁠Setup

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

⁠Test you setup with

docker run -e DISPLAY=docker.internal:0 petedavidson887/xclock:0.0.1

⁠Build the image

docker build -t jrmgx/ubuntu-firefox .

⁠Start firefox

docker run -it jrmgx/ubuntu-firefox

⁠Explore the container (ie: install things etc.)

docker run -it jrmgx/ubuntu-firefox bin/bash

From here you can also install and run anything from the container.

Tag summary

Content type

Image

Digest

sha256:13667bcf9…

Size

195.4 MB

Last updated

7 months ago

docker pull jrmgx/ubuntu-firefox