Public | Automated Build

Last pushed: a month ago
Short Description
Chromium container.
Full Description


Download the seccomp profile (chrome.json) and save it as ~/.chrome-seccomp.json.

An example bash function to launch Chromium (with resource constraints!):

# Define a common (Chrome-based) user agent here that will get used by any Chrome containers.
COMMONUA="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"

# Chromium function
function dockerchromium(){
  sudo mkdir -p "$HOME/DockerChromium/Profile"
  sudo chown -R 999:999 "$HOME/DockerChromium"
  docker_del_stopped tweetdeck
  docker run -it \
    --net host \
    --cpuset-cpus 0 \
    --memory 1024mb \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e DISPLAY=unix$DISPLAY \
    -v $HOME/DockerChromium/Profile:/data \
    --security-opt seccomp=$HOME/.chrome-seccomp.json \
    --device /dev/snd \
    -v /dev/shm:/dev/shm \
    --name chromium \
    ajhaydock/chromium --user-data-dir=/data --disable-reading-from-canvas --disable-bundled-ppapi-flash --user-agent="$COMMONUA"
Docker Pull Command
Source Repository

Comments (0)