I've been trying to install wine in a docker container to run a windows application. I've tried this on Ubuntu 18.40 and 19.10.
I do get some errors regarding the missing UI such as: (0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131–0000–0000-c000–000000000046}).
When I look in the running container wine is not installed (/usr/bin). 'whereis' and 'which' can't find wine.
Any ideas why wine is missing in the container?
Here is my wine install section of the Dockerfile:
FROM ubuntu:19.10
RUN apt-get update
RUN apt-get install -y wget
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y software-properties-common gnupg2
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key
RUN apt-key add winehq.key
RUN apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
RUN add-apt-repository ppa:cybermax-dexter/sdl2-backport
RUN apt update && apt install -y --install-recommends winehq-stable
RUN apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
You’ve specified the bionic repository when you’ve used FROM ubuntu:19.10 which is eoan. You can use a codename for the Ubuntu tag so I’d suggest using ‘focal’ for both since wine is available on Ubuntu 20.04.
As for your display issues, the solution depends on whether you’re using macOS or Ubuntu but basically comes down to having a running X server and appropriate access. I haven’t documented these solutions yet but I have solved them with my docker-wine image and associated scripts if you’d like to take a look: https://github.com/scottyhardy/docker-wine