Run Firefox inside an isolated Docker container. This is achieved by sharing a socket for X11 and PulseAudio. This code is based on the terlar code for spotify docker-spotify-pulseaudio. This version does not get/save the configuration of firefox in the user home, everything stay inside the docker container.
- Clone this repository and change to the directory:
git clone https://github.com/tobiasBora/docker-firefox-pulseaudio.git && cd docker-firefox-pulseaudio
- Build the container:
sudo docker build -t firefox .
- Run the provided script:
./scripts/firefox
- Use Firefox, and enjoy the sound.
If you get an error about impossible display, and if you run Fedora or any other distribution using SELinux, you may want to try to temporary disable SELinux by using:
sudo setenforce 0