Skip to content

mediocrename/dockerfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

This fork only includes the instructions and dockerfile to run chromium inside docker on MacOS

Setup

  1. Install XQuartz: https://www.xquartz.org/
  2. Allow network connections in XQuartz preferences (security tab)
  3. Build dockerfile
  sudo docker build -t "quartzedchromium:dockerfile" .
  1. Add/customize seccomp profile: https://raw.githubusercontent.com/jfrazelle/dotfiles/master/etc/docker/seccomp/chrome.json

Run

  1. Add host IP for auth:
  xhost + $(ifconfig en1 | grep inet | awk '$1=="inet" {print $2}')
  1. Run XQuartz
open -a XQuartz
  1. Run container
sudo docker run -e DISPLAY=[YOUR_IP]:0 -v /tmp/.X11-unix:/tmp/.X11-unix --privileged --security-opt seccomp=~/chrome.json quartzedchromium:dockerfile

About

Run chromium inside docker on MacOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%