aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md34
1 files changed, 22 insertions, 12 deletions
diff --git a/README.md b/README.md
index e994c52..e255a54 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,19 @@
-Sound in Container: https://github.com/mviereck/x11docker/wiki/Container-sound:-ALSA-or-Pulseaudio
+# Firefox in a Docker Container
-Create socket:
+This is my project for running in a container.
+
+## Getting sound from the container using Pulse
+
+[source][1]
+
+
+Step 1: Create socket
```
pactl load-module module-native-protocol-unix socket=/tmp/pulseaudio.socket
```
-
-create `/tmp/pulseaudio.client.conf` with:
+Step 2: Create client config file `/tmp/pulseaudio.client.conf` with contents
```
default-server = unix:/tmp/pulseaudio.socket
@@ -18,14 +24,18 @@ daemon-binary = /bin/true
enable-shm = false
```
-Share pulse stuff
+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.
```
-docker run --rm \
- --env PULSE_SERVER=unix:/tmp/pulseaudio.socket \
- --env PULSE_COOKIE=/tmp/pulseaudio.cookie \
- --volume /tmp/pulseaudio.socket:/tmp/pulseaudio.socket \
- --volume /tmp/pulseaudio.client.conf:/etc/pulse/client.conf \
- --user $(id -u):$(id -g) \
- imagename
+browser.tabs.remote.autostart = false
```
+
+
+
+[1]: https://github.com/mviereck/x11docker/wiki/Container-sound:-ALSA-or-Pulseaudio