diff options
author | Cody Hiar <codyfh@gmail.com> | 2019-02-18 20:17:47 -0700 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2019-02-18 20:17:47 -0700 |
commit | 71a955a79495e09ff8a91b46f68c79e17447bd23 (patch) | |
tree | 9d9dc928f4150cc3db01e3010d1e4d241cae3750 /README.md | |
parent | 0685bd8dbb6f06a4581de7cd3345571004b001c3 (diff) |
Cleaning up code
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 34 |
1 files changed, 22 insertions, 12 deletions
@@ -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 |