Firefox in a Docker Container
This is my project for running in a container.
Getting sound from the container using Pulse
Step 1: Create socket
pactl load-module module-native-protocol-unix socket=/tmp/pulseaudio.socket
Step 2: Create client config file /tmp/pulseaudio.client.conf
with contents
default-server = unix:/tmp/pulseaudio.socket
# Prevent a server running in the container
autospawn = no
daemon-binary = /bin/true
# Prevent the use of shared memory
enable-shm = false
Step 3: Now run make up
and your firefox container should start running
Tabs contantly crashing
You can disable multi-process windows in Firefox by setting these prefs to
false on the about:config
page.
browser.tabs.remote.autostart = false