Dockerfiles for running headless x11 apps ๐ฆ๐คโจ
FROM bengreenier/docker-xvfb:stable
# install glxgears
RUN apt-get update -y \
&& apt-get install --no-install-recommends -y mesa-utils \
&& rm -rf /var/lib/apt/lists/*
CMD glxgears
You can then build and run the image:
docker build . -t my-x11-app
docker run -it --rm --name my-running-app my-x11-app
And glxgears
will run in the virtual x11 space.
Are based on their debian variants. We support:
stable
stable-slim
stretch
strech-slim
jessie
jessie-slim
buster
buster-slim
These images support build-time variables for customization.
RESOLUTION
- Configures the X screen buffer. Default:1920x1080x24
XARGS
- Configures X with additional arguments. Default:""
(no value)
MIT