This is a Dockerfile to dockerize a google-chrome session
Build the image locally
$ docker build -t google-chrome .
Create the settings folder
$ mkdir -p $HOME/.config/google-chrome-docker/ $HOME/Downloads/
Start the container
$ docker run \
-d \
--rm \
--name google-chrome \
--cap-add SYS_ADMIN \
-e DISPLAY \
-v /tmp/.X11-unix/:/tmp/.X11-unix/ \
-v $HOME/.config/google-chrome-docker/:/home/ubuntu/.config/google-chrome/ \
-v $HOME/Downloads/:/home/ubuntu/Downloads/ \
--device /dev/snd \
--device /dev/video0 \
google-chrome