Sign inSign up

sabotagecla6/chrome

By sabotagecla6

•Updated 7 months ago

Image
0

348

sabotagecla6/chrome repository overview

⁠What's this image

This image is for run chrome web browser in container.
You build image from this image.

⁠How to use

  1. create docker image from below Dockerfile
FROM sabotagecla6/chrome

ENV PULSE_COOKIE=/tmp/pulse/cookie
ENV PULSE_SERVER=unix:/tmp/pulse/native

# ***********************************************
# setting for create user
# ***********************************************
ENV USER_ID=1000
ENV GROUP_ID=1000
ENV USER=ubuntu
ENV PASSWD=ubuntu
ENV ROOT_PASSWD=ubuntu

RUN . /opt/initilize-image.sh

CMD ["google-chrome-stable", "--no-snadbox"] 
  1. run container below command
sudo docker run \
    --privileged \
    -u $(id -u):$(id -g) \
    --shm-size=4096m \
    --net=bridge \
    -e DISPLAY \
    -v /run/user/$(id -u)/pulse/native:/tmp/pulse/native \
    -v ~/.config/pulse/cookie:/tmp/pulse/cookie:ro \
    -v /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 \
    -v /tmp/.XIM-unix/:/tmp/.XIM-unix/ \
    myimages/chrome \
    google-chrome-stable

if you want that container run not privileged mode, you use saboagecla6/chrome-nosandbox

Tag summary

Content type

Image

Digest

sha256:ec2ccca0f…

Size

1 GB

Last updated

7 months ago

docker pull sabotagecla6/chrome