Running chromium in docker container

I’ve just managed to dockerize chromium. The package itself is taken from spot’s copr repo. Jessie Frazelle’s blog post helped me a lot!

It looks like this:

Chromium in a docker container

You can get it either from docker hub, or build it yourself.

Docker hub

% docker pull tomastomecek/fedora-chromium

And run it:

% docker run \
    --net host \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e DISPLAY=$DISPLAY \
    -e XAUTHORITY=/.Xauthority \
    -v ~/.Xauthority:/.Xauthority:ro \
    --name chromium \
    tomastomecek/fedora-chromium

Build it yourself

% docker build --tag=fedora-chromium .

For more information, see the github repo.

comments powered by Disqus