Wine in Docker

Questions about Wine on Linux
Locked
csteenwyk
Newbie
Newbie
Posts: 1
Joined: Wed Jan 27, 2021 2:22 pm

Wine in Docker

Post by csteenwyk »

Hi,

I have wine installed in an Ubuntu 20.04 docker image. When I use wine in the image, I would like to have the windows binary format registered so I don't have to type "wine" before every command. Within the image I installed the wine-binfmt package.

On a Fedora host, to get this to work, I had to install wine-systemd. Once I installed that, I could run my Ubuntu image from a Fedora host and execute windows executables without having to prefix the command with "wine". This is perfect.

However, I am struggling to get this same behavior to work on an Ubuntu host. I keep getting the error "run-detectors: unable to find an interpreter for <filepath>.exe". The Ubuntu host has binfmt-support and wine-binfmt installed. We also ran "sudo update-binfmts --import wine" to see if that would help. It did not.

I am sure it is a simple thing I am missing, but I would love some help!

Thanks!
Locked