test. Do not use it
380
This is a docker baseimage that can be used to create containers able to run any X application on a headless server very easily. The application's GUI is accessed through a modern web browser (no installation or configuration needed on the client side) or via any VNC client.
Different docker images are available:
| Base Distribution | Docker Image Base Tag | Size |
|---|---|---|
| Alpine 3.13 | alpine-3.13 | |
| Alpine 3.14 | alpine-3.14 | |
| Alpine 3.15 | alpine-3.15 | |
| Alpine 3.16 | alpine-3.16 | |
| Alpine 3.17 | alpine-3.17 | |
| Debian 9 | debian-9 | |
| Debian 10 | debian-10 | |
| Debian 11 | debian-11 | |
| Ubuntu 16.04 LTS | ubuntu-16.04 | |
| Ubuntu 18.04 LTS | ubuntu-18.04 | |
| Ubuntu 20.04 LTS | ubuntu-20.04 |
Here are the main components of the baseimage:
Images are versioned. Version number follows the semantic versioning. The
version format is MAJOR.MINOR.PATCH, where an increment of the:
MAJOR version indicates that a backwards-incompatible change has been done.MINOR version indicates that functionality has been added in a backwards-compatible manner.PATCH version indicates that a bug fix has been done in a backwards-compatible manner.For each distribution-specific image, multiple tags are available:
| Tag | Description |
|---|---|
| distro-vX.Y.Z | Exact version of the image. |
| distro-vX.Y | Latest version of a specific minor version of the image. |
| distro-vX | Latest version of a specific major version of the image. |
The Dockerfile for your application can be very simple, as only three things
are required:
/startapp.sh in
container).Here is an example of a docker file that would be used to run the xterm
terminal.
In Dockerfile:
# Pull base image.
FROM jlesage/baseimage-gui:alpine-3.15-v4
# Install xterm.
RUN add-pkg xterm
# Copy the start script.
COPY startapp.sh /startapp.sh
# Set the name of the application.
RUN set-cont-env APP_NAME "Xterm"
In startapp.sh:
#!/bin/sh
exec /usr/bin/xterm
Then, build your docker image:
docker build -t docker-xterm .
And run it:
docker run --rm -p 5800:5800 -p 5900:5900 docker-xterm
You should be able to access the xterm GUI by opening in a web browser:
http://[HOST IP ADDR]:5800
Full documentation is available at https://github.com/jlesage/docker-baseimage-gui.
Content type
Image
Digest
sha256:a1c7574e8…
Size
49.9 MB
Last updated
over 3 years ago
docker pull eugenechen0514/ha_baseimage-gui:aarch64-base-3.15-v0