This docker image contains:
It is intended to be base image for derivations, or to be used directly.
The image can be rebuilt using the following arguments:
| Argument | Default Value | Description |
|---|---|---|
| display_height | 1024 | The height of the X server display. |
| display_width | 1280 | The width of the X server display. |
| number_display | 27 | The display number used by the X server. |
| number_screen | 0 | The screen number used by the X server. |
The following environment variables can be defined for containers:
| Variable | Default Value | Description |
|---|---|---|
| DISPLAY | <number_display>.<number_screen> | The X11 display to which client applications will connect. |
| DISPLAY_GEOMETRY | <display_width>x<display_height> | The geometry of the X server. |
| NUMBER_DISPLAY | <number_display> | The display number used by the X server. |
| NUMBER_SCREEN | <number_screen> | The screen number used by the X server. |
These steps assume that we are forwarding xclock from the docker host using to the embedded X server, in a container named x11-SNAPSHOT, using display 25.0 externally, and display 27.0 inside of the container.
6000 (e.g. DISPLAY=27.0 --> port 6027), so for this example we would run the container with the --publish=6025:6027/tcp argument.$ magic_cookie=$(docker exec -it x11-SNAPSHOT bash -c "xauth list | grep \$(hostname)" | awk '{print $3}')
$ export DISPLAY=localhost:25.0
$ xauth add ${DISPLAY} . ${magic_cookie}
xauth remove ${DISPLAY}
xauth list can be used to verify magic cookies at any point.The embedded entrypoint script is located at /etc/entrypoint.d/fluxbox and performs the following actions:
| Variable | Default Value | Description |
|---|---|---|
| ENABLE_FLUXBOX | undefined | If undefined, fluxbox will not be instantiated. |
The embedded entrypoint script is located at /etc/entrypoint.d/websockify and performs the following actions:
| Variable | Default Value | Description |
|---|---|---|
| ENABLE_NOVNC | undefined | If undefined, noVNC / websockify will not be instantiated. |
The embedded entrypoint script is located at /etc/entrypoint.d/x11 and performs the following actions:
| Variable | Default Value | Description |
|---|---|---|
| NUMBER_DISPLAY | 27 | The display number used by the X server. |
The embedded entrypoint script is located at /etc/entrypoint.d/x11vnc and performs the following actions:
| Variable | Default Value | Description |
|---|---|---|
| X11VNC_CERT_DAYS | 30 | Validity period of any generated PKI certificates. |
| X11VNC_KEY_SIZE | 4096 | Key size of any generated PKI keys. |
The embedded healthcheck script is located at /etc/healthcheck.d/fluxbox and performs the following actions:
The embedded healthcheck script is located at /etc/healthcheck.d/websockify and performs the following actions:
The embedded healthcheck script is located at /etc/healthcheck.d/x11vnc and performs the following actions:
The embedded healthcheck script is located at /etc/healthcheck.d/xvfb and performs the following actions:
/
├─ etc/
│ ├─ entrypoint.d/
│ │ ├─ x11
│ │ └─ x11vnc
│ └─ healthcheck.d/
│ ├─ fluxbox
│ ├─ websockify
│ ├─ x11vnc
│ └─ xvfb
├─ root/
│ └─ .Xauthority
├─ run/
│ └─ secrets/
│ ├─ x11vnc.crt
│ ├─ x11vnc.key
│ └─ x11vncca.crt
├─ tmp/
│ └─ .X11-unix/
└─ usr/
└─ share/
└─ novnc/
5800/tcp - noVNC listening port.5900/tcp - VNC listening port.None.
Content type
Image
Digest
sha256:524df83a1…
Size
172.8 MB
Last updated
over 3 years ago
docker pull crashvb/x11