wine not installed in docker container

Questions about Wine on Linux
Locked
mnicolaides
Newbie
Newbie
Posts: 1
Joined: Wed May 13, 2020 12:59 pm

wine not installed in docker container

Post by mnicolaides »

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:

Code: Select all

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
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: wine not installed in docker container

Post by Gcenx »

The Ubuntu section explains this, the packages get installed instead go /opt/

Code: Select all

 Files are installed to /opt/wine-devel, opt/wine-stable, or /opt/wine-staging (depending on which version you installed).
User avatar
scottyhardy
Newbie
Newbie
Posts: 1
Joined: Wed Jul 08, 2020 2:21 am

Re: wine not installed in docker container

Post by scottyhardy »

This line is the problem:

Code: Select all

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
Locked