Virtual X11 server will start if socket is not mounted To disable use : -e virtual_display='no'
FROM ubuntu:14.04
COPY entrypoint.sh /entrypoint.sh
RUN apt-get -y update &&
DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common apt-transport-https curl xvfb libxrender1 libxtst6 libxi6 &&
curl -fsSL https://dl.winehq.org/wine-builds/Release.key | apt-key add - &&
dpkg --add-architecture i386 &&
add-apt-repository https://dl.winehq.org/wine-builds/ubuntu/ &&
apt-get -y update &&
DEBIAN_FRONTEND=noninteractive apt-get -y install --install-recommends winehq-stable &&
chmod +x /entrypoint.sh &&
echo 'wine ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/wine &&
useradd -m wine
USER wine WORKDIR /home/wine ENV HOME /home/wine
ENV DISPLAY :0 ENV virtual_display yes
ENTRYPOINT ["/entrypoint.sh"] CMD ["/bin/bash"]
#!/bin/bash if [[ $virtual_display == "yes" ]] then Xvfb $DISPLAY -screen 0 1024x768x24 </dev/null &>/dev/null & fi exec "$@"
docker build -t rpuserh/wine .
docker run -e virtual_display='no' --rm --volume /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 rpuserh/wine wine "C:\windows\system32\notepad.exe"
docker run -e virtual_display='no' --name wine -ti --volume /home/user/Desktop/tttt:/mnt --volume /tmp/.X11-unix/X0:/tmp/.X11-unix/X0 rpuserh/wine
docker run --name wine -ti --volume /home/user/Desktop/tttt:/mnt rpuserh/wine
Content type
Image
Digest
Size
289.9 MB
Last updated
almost 9 years ago
docker pull rpuserh/wine