Chrome or Firefox browser inside Docker
Run Chromium or Firefox browser inside an isolated Docker container on your Linux desktop. This setup was inspired from jlund/docker-chrome-pulseaudio.
Instructions
-
Install PulseAudio Preferences. Debian/Ubuntu users can do this:
sudo apt-get install paprefs
-
Launch PulseAudio Preferences, go to the "Network Server" tab, and check the "Enable network access to local sound devices" checkbox.
-
Restart PulseAudio
sudo service pulseaudio restart
On some distributions, it may be necessary to completely restart your computer. You can confirm that the settings have successfully been applied using the
pax11publish
command. You should see something like this (the important part is in bold):Server: {ShortAlphanumericString}unix:/run/user/1000/pulse/native tcp:YourHostname:4713 tcp6:YourHostname:4713
Cookie: ReallyLongAlphanumericString
-
Install Docker and Docker Compose if you haven't already
-
Clone this repository and get right in there
git clone https://github.com/predkambrij/docker-browser-pulseaudio.git && cd docker-browser-pulseaudio
-
Prepare .env
./build_env.sh
-
Run the container
docker-compose up -d --build chrome or docker-compose up -d --build firefox