To have a persistent wine profile, do:
docker run \
-ti --rm \
-v /home/<host-user>/.wine-docker:/home/wine/.wine \
hasufell/wine \
chmod -R wine:wine /home/wine/.wine
Then run wine via something like:
docker run \
-ti --rm \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-v /home/<host-user>/.wine-docker:/home/wine/.wine \
--user wine \
hasufell/wine \
wine "C:\windows\system32\notepad.exe"
If you see this message:
Make sure that your X server is running and that $DISPLAY is set correctly.
Run: xhost +
Content type
Image
Digest
Size
103.5 MB
Last updated
over 8 years ago
docker pull hasufell/wine