Created
April 11, 2019 08:47
-
-
Save kouk/9b75a80707729bc1bc652e6470ea7dc2 to your computer and use it in GitHub Desktop.
Run google meet in chrome via docker with user namespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jess/chrome | |
USER root | |
# Add chrome user | |
RUN groupadd -r -g 1001 kouk && useradd -r -g kouk -u 1001 -G audio,video kouk \ | |
&& mkdir -p /home/kouk/Downloads && chown -R kouk:kouk /home/kouk | |
USER kouk | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec docker run -it --rm \ | |
--memory 500mb \ | |
-v /etc/localtime:/etc/localtime:ro \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix \ | |
-e DISPLAY=unix$DISPLAY \ | |
-v /home/kouk/Downloads:/home/kouk/Downloads \ | |
-v /home/kouk/.config/google-chrome:/home/kouk/.config/google-chrome \ | |
-v /dev/shm:/dev/shm \ | |
-v /etc/hosts:/etc/hosts \ | |
--device /dev/snd \ | |
--device /dev/dri \ | |
--device /dev/video0 \ | |
--group-add audio \ | |
--group-add video \ | |
--name chrome \ | |
--privileged --userns=host --user 1001:1001 chrome --app=https://meet.google.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kouk:1001:1 | |
kouk:100001:65536 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Google meet won't work with Firefox, and I thought I'd use this image by @jessfraz. Except I have docker running with user namespace support turned on, so I had to modify things a bit.