aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: e255a544075ace9202139ee7232609e6ea70a2ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Firefox in a Docker Container

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
```

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 
```



[1]: https://github.com/mviereck/x11docker/wiki/Container-sound:-ALSA-or-Pulseaudio