HUB
Sign inSign up

aljazmc/wine-debian

By aljazmc

•Updated 1 day ago

Wine 11.22 development build for 32-bit and 64-bit Windows applications

Image
Integration & delivery
Developer tools
0

956

aljazmc/wine-debian repository overview

⁠aljazmc/wine-debian

The WineHQ development build on Debian, for running 32-bit and 64-bit Windows applications.

Docker pulls Image size Version platforms: amd64 | arm64 Debian: 13.7 Wine: 11.22 Wine license: LGPL-2.1-or-later CI Dockerfile license: MIT

Docker Hub⁠ · Source⁠ · All images⁠

⁠Overview

Base imagedebian:13.7
SoftwareWine 11.22 (WineHQ winehq-devel)
Also included32-bit and 64-bit Mesa, Vulkan and SDL2 libraries, GnuTLS, ShellCheck
Userwine (uid 1000) with passwordless sudo (sudo apt-get install ...)
Tagslatest, 11.22, 11.22-YYYYMMDD

⁠Quick start

Run in an empty directory; the commands work on the files of the current directory, mounted as the home directory of the container. CI⁠ runs these commands to check that they work.

# open a shell, with the current directory as the home directory
docker run --rm -it -v .:/home/wine -w /home/wine aljazmc/wine-debian

# the Wine version
docker run --rm aljazmc/wine-debian wine --version

# run a Windows command, without a display
docker run --rm aljazmc/wine-debian wine cmd /c "echo Hello from cmd.exe"

⁠Usage with Docker Compose

## docker-compose.yml file
services:
    wine:
        image: aljazmc/wine-debian
        user: ${UID:-1000}:${GID:-1000}
        working_dir: /home/wine
        volumes:
            - .:/home/wine
            - /home/$USER/.Xauthority:/home/wine/.Xauthority
            - $XDG_RUNTIME_DIR:/run/user/1000
            - /tmp/.X11-unix:/tmp/.X11-unix
            - /var/lib/dbus/machine-id:/var/lib/dbus/machine-id
        devices:
            - /dev/dri:/dev/dri
            - /dev/snd:/dev/snd
        group_add:
            - "992" # render group: stat -c %g /dev/dri/renderD128
            - "44"  # video group: stat -c %g /dev/dri/card0
            - "29"  # audio group: stat -c %g /dev/snd/controlC0
        environment:
            DISPLAY: $DISPLAY
            HOME: /home/wine
            XDG_RUNTIME_DIR: /run/user/1000
        network_mode: host

## start container shell
docker compose run --rm wine sh -c "sh"

## use shell inside the container to print environment variables
docker compose run --rm wine sh -c "printenv"

⁠Notes

  • The container user needs the host's render, video and audio groups (group_add) to use the GPU and the sound card. Without them, apps fall back to software rendering. The group ids differ between distributions: stat -c %g /dev/dri/renderD128 /dev/dri/card0 /dev/snd/controlC0.
  • There is no X server or audio server inside the container. Apps use the host's X server (DISPLAY, /tmp/.X11-unix) and the host's PipeWire/PulseAudio (XDG_RUNTIME_DIR).
  • On the first start of a new prefix Wine asks to install Wine Mono (needed for .NET applications) and Wine Gecko (needed for applications with an embedded browser). To skip both, set WINEDLLOVERRIDES="mscoree,mshtml=", e.g. docker compose run --rm -e WINEDLLOVERRIDES="mscoree,mshtml=" wine sh -c "wineboot -i".
  • 32-bit and 64-bit Windows applications are supported, with OpenGL and Vulkan (DXVK, VKD3D).

⁠Tags

  • latest: the newest build.
  • 11.22: the Wine version in the image, e.g. aljazmc/wine-debian:11.22. Use it to stay on a known version.
  • 11.22-YYYYMMDD: the same version, built on that date (UTC), e.g. 11.22-20261122. Every build gets its own tag that never moves, so use it where you need exactly the same image again.
  • Wine is the WineHQ development build (winehq-devel), pinned with WINE_VERSION in the Dockerfile (winehq-devel=11.22~*).

⁠License

The Dockerfile, the scripts and this README are part of aljazmc/dockerfiles⁠, released under the MIT License⁠.

The software in the image keeps its own license:

SoftwareLicenseIn the image
Wine⁠LGPL-2.1-or-later/usr/share/doc/winehq-devel/copyright

Every other package keeps its license too: apk info --license <package> shows it on Alpine, /usr/share/doc/<package>/copyright on Debian.

Tag summary

Content type

Image

Digest

sha256:1f5140088…

Size

1008.2 MB

Last updated

1 day ago

docker pull aljazmc/wine-debian