Hacker News new | ask | show | jobs
by adriancr 1903 days ago
Nice, similar thing to what I do, a few more things:

1. If you want X11 (haven't figured out audio yet)

"-e DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix:ro"

2. Firefox

> --shm-size=2g

and start with: firefox --no-remote

3. Entering container

Just map a command to enter the container with the name as parameter / optional image type as second.

That way you get a new fresh environment whenever you want

Command would just start if it's not started or exec otherwise. I go extra length to have docker start up a ssh server inside container and I just ssh into it.

1 comments

For audio, maybe you can use pavucontrol on your host to make pulseaudio accept network connections, and then use PULSE_SERVER=your_host_ip command_which_plays_audio in the docker container? (I haven't tried it).
or better (because there's no nasty reachability from browsers or the net) just use an unix-domain-socket and bind mount that and the secret cookie to the container (I use that with bubblewrap for appimages)