Chromium browser in the Docker
container.
- Docker Registry @monstrenyatko/chromium
- GitHub @monstrenyatko/docker-chromium
- Based on GitHub @theasp/docker-novnc
- Xvfb: virtual framebuffer X server for X Version 11
- x11vnc: VNC server
- noNVC: HTML
VNC
client - Fluxbox: small window manager
- supervisord: process control system
-
Configure environment:
-
DOCKER_REGISTRY
: [OPTIONAL] registry prefix to pull image from a customDocker
registry:export DOCKER_REGISTRY="my_registry_hostname:5000/"
-
-
Pull prebuilt
Docker
image:docker-compose pull
-
Start prebuilt image:
docker-compose up -d
-
Verify:
Open
http://localhost:8080
in web browser. -
Stop/Restart:
docker-compose stop docker-compose start
Container can be configured using environment variables:
APP_UID
: [OPTIONAL]UID
to be used to run user-faced processes instead ofdefault
APP_GID
: [OPTIONAL]GID
to be used to run user-faced process instead ofdefault
SYS_UID
: [OPTIONAL]UID
to be used to run system processes instead ofdefault
SYS_GID
: [OPTIONAL]GID
to be used to run system processes instead ofdefault
DISPLAY_WIDTH
: [OPTIONAL] the virtual display width in pixelsDISPLAY_HEIGHT
: [OPTIONAL] the virtual display height in pixelsWEBSOCKIFY_PARAMS
: [OPTIONAL] the extra command-line parameters to be passed to thewebsockify
CHROMIUM_PARAMS
: [OPTIONAL] the extra command-line parameters to be passed to theChromium
LOG_LEVEL
: [OPTIONAL] thesupervisord
logging level. Set todebug
to see services outputNET_GW
: [OPTIONAL] the network default GW to be used instead of one assigned byDocker
. This option requires--cap-add=NET_ADMIN
-
default
target platform:cd <path to sources> DOCKER_BUILDKIT=1 docker build --tag <tag name> .
-
arm64
target platform:cd <path to sources> DOCKER_BUILDKIT=1 docker build --platform=linux/arm64 --tag <tag name> .