Skip to content

Instantly share code, notes, and snippets.

@kouk
Created April 11, 2019 08:47
Show Gist options
  • Save kouk/9b75a80707729bc1bc652e6470ea7dc2 to your computer and use it in GitHub Desktop.
Save kouk/9b75a80707729bc1bc652e6470ea7dc2 to your computer and use it in GitHub Desktop.
Run google meet in chrome via docker with user namespace
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
#!/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
kouk:1001:1
kouk:100001:65536
@kouk
Copy link
Author

kouk commented Apr 11, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment