HUB
Sign inSign up
dosbox logo

dgcosenza/dosbox

By dgcosenza

•Updated about 4 hours ago

Hardened multi-arch DOSBox x86 DOS emulator Web Desktop on Debian 13 (noVNC, 0 fixable CVEs).

Image
0

157

dgcosenza/dosbox repository overview

⁠DOSBox — Hardened Debian 13 (trixie-slim) Container Image

Daily CI OpenSSF Scorecard Workflow Gitleaks Secret Scan Public Content Check OpenSSF Scorecard OpenSSF Best Practices

Trivy + Grype: 0 Fixable CVEs Signed: Cosign OIDC SLSA Build L3 SBOM: SPDX + CycloneDX Base OS Architectures Healthcheck: CI Verified Renovate Enabled Dependabot Enabled Daily Rebuilds

Latest Release Release Date Last Commit Docker Pulls Docker Image Size Registries: Docker Hub + GHCR Packaging License: MIT Upstream License GitHub Issues FNX Labs Catalog

A hardened multi-arch DOSBox browser-accessible Web Desktop container built on Debian 13 (trixie-slim) with TigerVNC, Openbox, SHA-256-verified static noVNC 1.7.0, and NGINX HTTP/HTTPS reverse proxy. Maintained by Daniel G. Cosenza from FNX Labs.

⁠Overview

dgcosenza/dosbox packages DOSBox (0.74-3) on Debian 13 (trixie-slim) inside a hardened browser-accessible TigerVNC + Openbox + noVNC 1.7.0 + NGINX (:3000 HTTP / :3001 HTTPS) desktop, automatically mounting /dos as drive C: on startup.

⁠Current Versions

ComponentResolved Version
DOSBox0.74.3
Base OSDebian 13.8 (trixie-slim)
Architectureslinux/amd64, linux/arm64
Uncompressed size (per arch)amd64: 237.9 MB, arm64: 659.0 MB
Last verified build (UTC)2026-11-28
Published multi-arch digestdgcosenza/dosbox@sha256:fbc43ac3575298e74320256358c4f139c3388030314438e7bcf0b481f7a7ea53
GHCR mirrorghcr.io/dgcosenza/dosbox@sha256:fbc43ac3575298e74320256358c4f139c3388030314438e7bcf0b481f7a7ea53
Supply chainCosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance
Security gate (Trivy + Grype on SBOM)0 fixable findings of any severity (49 upstream-unfixed)

⁠Supported Tags

TagPolicyDescription
latestMovingLatest verified multi-arch build passing all CVE, Dive, and smoke gates.
<version> (e.g. 0.74.3)MovingLatest verified build for that upstream release.
<version>-<YYYYMMDD>ImmutableDate-stamped daily security rebuild.
sha-<short>ImmutableGit commit tag from this repository.

Pin production deployments by immutable digest: dgcosenza/dosbox@sha256:<digest> or ghcr.io/dgcosenza/dosbox@sha256:<digest>.

⁠Supported Architectures

ArchitectureStatusVerification
linux/amd64Published & natively testedNative x86_64 build, smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.
linux/arm64Published & natively testedNative ARM64 build, smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3.

⁠Quick Start

Volume ownership note: docker-compose.example.yml defaults to a named Docker volume so non-root runtime permissions (1000:1000) are initialized automatically; if switching to a host bind mount, pre-create the directory owned by 1000:1000 before docker compose up -d.

docker run -d --name dosbox --restart unless-stopped \
  --security-opt no-new-privileges:true --shm-size 1g \
  -p 127.0.0.1:3000:3000 -p 127.0.0.1:3001:3001 \
  -e PUID=1000 -e PGID=1000 -e TZ=Etc/UTC \
  -v dosbox_config:/config \
  dgcosenza/dosbox:latest

⁠Compose Example

See docker-compose.example.yml⁠:

services:
  dosbox:
    image: dgcosenza/dosbox:latest
    container_name: dosbox
    restart: unless-stopped
    shm_size: "1gb"
    security_opt:
      - no-new-privileges:true
    ports:
      - "127.0.0.1:3000:3000"
      - "127.0.0.1:3001:3001"
    environment:
      PUID: "1000"
      PGID: "1000"
      TZ: "Etc/UTC"
      TITLE: "DOSBox"
      CUSTOM_USER: "admin"
      PASSWORD_FILE: "/run/secrets/dosbox_password"
    secrets:
      - dosbox_password
    volumes:
      - dosbox_config:/config
      - dosbox_dos:/dos
secrets:
  dosbox_password:
    file: ./secrets/dosbox_password.txt
volumes:
  dosbox_config:
  dosbox_dos:

⁠Configuration

VariableDefaultDescription
PUID / PGID1000 / 1000UID and GID mapped to the desktop user abc.
CUSTOM_USERabcUsername when HTTP Basic Authentication is enabled.
PASSWORD / PASSWORD_FILE(empty)Optional password or Docker secret path enabling HTTP Basic Auth on :3000 / :3001.
SCREEN_WIDTH / SCREEN_HEIGHT1440 / 900Initial virtual display geometry (AcceptSetDesktopSize=1 resizes dynamically).
TITLEDOSBoxBrowser tab title in the noVNC web client.
TZEtc/UTCContainer timezone.

Ports: 3000/tcp (HTTP noVNC), 3001/tcp (HTTPS noVNC). Volumes: /config, /dos. User: abc (PUID:PGID, default 1000:1000 via setpriv). PID 1: tini.

⁠Healthcheck

HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
  CMD ["sh", "-c", "curl -sk -o /dev/null -w '%{http_code}' --max-time 5 https://127.0.0.1:3001/ | grep -qE '^(200|301|302|401)$'"]

Probes https://127.0.0.1:3001/ and verifies TLS + NGINX + noVNC readiness (200 or 401 when Basic Auth is active).

⁠Web Desktop Architecture & Authentication

  1. Connect over HTTPS at https://127.0.0.1:3001/ (or place behind a TLS reverse proxy on :3000).
  2. Provide PASSWORD_FILE=/run/secrets/... to enforce bcrypt HTTP Basic Authentication via NGINX.

⁠Supply-Chain Verification

cosign verify \
  --certificate-identity-regexp="^https://github\.com/dgcosenza/dosbox-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
  --certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
  ghcr.io/dgcosenza/dosbox:latest

gh attestation verify oci://ghcr.io/dgcosenza/dosbox:latest --owner dgcosenza

⁠Security

  • 0 fixable vulnerabilities of any severity: Hard-gated in CI by Trivy (UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) and Grype on the Syft SPDX SBOM (--only-fixed --fail-on negligible) on both amd64 and arm64.
  • Hardened runtime: Runs under tini PID 1 with least-privilege capabilities and no-new-privileges:true.
  • Report issues via SECURITY.md⁠.

⁠Build Locally

docker buildx build --platform linux/amd64 --load -t dgcosenza/dosbox:local .
./tests/smoke.sh dgcosenza/dosbox:local

⁠Update Policy

.github/workflows/daily.yml⁠ runs daily at 05:56 UTC with --no-cache: refreshes the debian:13.8-slim digest and OS security patches, runs smoke + Dive + Trivy + Grype gates on amd64 and arm64, publishes identical Cosign-signed SLSA L3 digests to Docker Hub and GHCR (plus optional Quay.io, GitLab, Codeberg, and Amazon ECR Public mirrors when configured), creates a signed GitHub Release, syncs docs & Docker Hub overview, and manages a single ci-failure issue.

⁠Design Decisions

  • Auto-mounted C: drive & X11 keyboard scancode compatibility: Pre-seeds usescancodes=false and mount c /dos in /config/dosbox.conf for TigerVNC keyboard compatibility.
  • Non-root execution: Runs as abc (1000:1000).

⁠License

Packaging, scripts, workflows, and documentation (packaging: MIT, upstream: GPL-2.0-or-later) are licensed under the MIT License⁠ — copyright Daniel G. Cosenza from FNX Labs. Third-party upstream notices: THIRD-PARTY-NOTICES.md⁠.

⁠Credits

Maintained by Daniel G. Cosenza from FNX Labs. Upstream project: dosbox-staging/dosbox-staging⁠.

Tag summary

Content type

Image

Digest

sha256:fbc43ac35…

Size

226.9 MB

Last updated

about 4 hours ago

docker pull dgcosenza/dosbox