https://github.com/cremuzzi/docker-firefox
Dockerized Firefox
https://github.com/cremuzzi/docker-firefox
docker docker-firefox firefox
Last synced: 5 months ago
JSON representation
Dockerized Firefox
- Host: GitHub
- URL: https://github.com/cremuzzi/docker-firefox
- Owner: cremuzzi
- Created: 2019-04-24T01:28:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-03T18:11:26.000Z (over 1 year ago)
- Last Synced: 2024-11-03T18:22:22.767Z (over 1 year ago)
- Topics: docker, docker-firefox, firefox
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/cremuzzi/firefox
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to use this image
## Start a Firefox instance
```sh
docker run \
--network host \
-e DISPLAY \
-v $HOME/.Xauthority:/home/firefox/.Xauthority:ro \
cremuzzi/firefox
```
## Audio support with Pulseaudio
Since tag `78.0.2-buster` we switched from alsa to **pulseaudio** for better and simpler audio support.
The container will just act as a client to your host's pulseaudio server.
Just run a container with the additional volume `/run/user/1000/pulse` like this:
```sh
docker run \
--network host \
-e DISPLAY \
-v $HOME/.Xauthority:/home/firefox/.Xauthority:ro \
-v /run/user/1000/pulse:/run/user/1000/pulse:ro \
cremuzzi/firefox
```
## Hardware acceleration with mesa
Since tag `firefox:68.8.0` we enabled mesa drivers for intel graphics cards, **mesa-dri-intel**.
This solves the WebGL issue from the previous versions of this image.
To enable hardware acceleration in your dockerized firefox just share /dev/dri with your container with the `--device /dev/dri` run option.
## Start with persistent storage
1. Create a data directory on a suitable volume on your host system, e.g. `/my/own/mozilla` and `/my/own/downloads`
2. Start your `firefox` container like this:
```sh
docker run \
--network host \
-e DISPLAY \
-v $HOME/.Xauthority:/home/firefox/.Xauthority:ro \
-v /run/user/1000/pulse:/run/user/1000/pulse:ro \
-v /my/own/downloads:/home/firefox/Downloads \
-v /my/own/mozilla:/home/firefox/.mozilla \
cremuzzi/firefox
```