Run Chrome in docker

To run the browser in docker and actually see it on the host machine we need this on the host:

$xhost +

Start docker like:
$sudo docker run -it --rm -e DISPLAY=:0.0 -v /tmp/.X11-uix:/tmp/.X11-unix --net-host <docker_file>

Then run it like:

$chromium-browser --no-ssandbox

Comments