Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 680 Bytes

File metadata and controls

28 lines (20 loc) · 680 Bytes

Running google-chrome in docker

This is a Dockerfile to dockerize a google-chrome session

Usage

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