predkambrij / docker-browser-pulseaudio

Run chromium browser inside docker container and make use of x11 unix socket and pulseaudio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Install PulseAudio Preferences. Debian/Ubuntu users can do this:

    sudo apt-get install paprefs
    
  2. Launch PulseAudio Preferences, go to the "Network Server" tab, and check the "Enable network access to local sound devices" checkbox.

  3. 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

  4. Install Docker and Docker Compose if you haven't already

  5. Clone this repository and get right in there

    git clone https://github.com/predkambrij/docker-browser-pulseaudio.git && cd docker-browser-pulseaudio
    
  6. Prepare .env

    ./build_env.sh
    
  7. Run the container

    docker-compose up -d --build chrome
    or
    docker-compose up -d --build firefox
    

About

Run chromium browser inside docker container and make use of x11 unix socket and pulseaudio

License:MIT License


Languages

Language:Shell 100.0%