Ready-to-run firefox image, with hw acceleration (AMD), audio (pipewire) and smooth scrolling.
909
This is a firefox docker image. It's based on Alpine linux, it has support for audio (needs pipewire on the host machine), smooth scrolling and hw acceleration (AMD gpus only).
Run with:
docker run --name firefox --rm -e DISPLAY=$DISPLAY --net=host -v /run/user/$(id -u)/pipewire-0:/tmp/pipewire-0 -v /dev/dri:/dev/dri aleemont/firefox-container
To disable hw acceleration do not mount /dev/dri:/dev/dri volume.
To disable audio (or if you are not using pipewire) do not mount the /run/user/$(id -u)/pipewire-0:/tmp/pipewire-0 volume.
If you see this error:
Authorization required, but no authorization protocol specified
Error: cannot open display: :1
You need to run xhost +local:docker in order to let the the docker containers access your X-server.
You can create a script to avoid mounting the volumes everytime by hand:
echo "#\!/bin/bash\ndocker run --rm --net=host -v /run/user/$(id -u)/pipewire-0:/tmp/pipewire-0 -v /dev/dri:/dev/dri aleemont/firefox-container" > /usr/bin/firefox-container
Then launch the firefox application with:
firefox-container
NOTE: You can also replace /usr/bin/firefox with that script in order to always launch the containerized firefox.
If you wish to modify options inside Firefox (e.g. signing in for the first time, or modifying firefox settings) you'll need to remove the --rm flag from the running command, perform the changes you need (e.g. sign in your Mozilla account and sync settings), exit the container and issue the following command:
docker commit -m "Update settings" -a "your_nickname" firefox your_repo/firefox-container && docker rm firefox
Now you can either:
docker run --name firefox --rm -e DISPLAY=$DISPLAY --net=host -v /run/user/$(id -u)/pipewire-0:/tmp/pipewire-0 -v /dev/dri:/dev/dri your_repo/firefox-container
docker push your_private_and_secure_repo/firefox-container
Content type
Image
Digest
sha256:ce7c6ec41…
Size
429.5 MB
Last updated
over 2 years ago
docker pull aleemont/firefox-container