Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on build error #1

Open
sukeyisme opened this issue Jan 18, 2018 · 2 comments
Open

on build error #1

sukeyisme opened this issue Jan 18, 2018 · 2 comments

Comments

@sukeyisme
Copy link

sukeyisme commented Jan 18, 2018

Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Note: command 'wine dotnetfx.exe /q /c:install.exe /q' returned status 43. Aborting.

dockerfile :
FROM suchja/wine
ENV WINEDEBUG -all,err+all
USER root
COPY waitonprocess.sh /scripts/
RUN chmod +x /scripts/waitonprocess.sh
COPY docker-entrypoint.sh /scripts/
RUN chmod +x /scripts/docker-entrypoint.sh
RUN /scripts/docker-entrypoint.sh
USER xclient
RUN wine wineboot --init
&& /scripts/waitonprocess.sh wineserver
&& rm -rf ~/.wine
&& wine wineboot
&& winetricks --unattended dotnet20
&& /scripts/waitonprocess.sh wineserver

and run command:
docker build --network=x11 --rm -f Dockerfile -t xxxxx

while x11 is my network created.

@suchja
Copy link
Owner

suchja commented Jan 18, 2018

@sukeyisme I'm no longer maintaining this package and thus forgot most of the details, sorry.

However, based on the error message and your dockerfile, I assume that wine tries to open a window and this is not allowed/possible during docker build!?! By saying that, have you tried to start and link to an x11-server? Maybe you get some additional information there. I'm really not sure whether it is possible to connect to x11server during docker build.

Another difference between your dockerfile and mine is that you call wine wineboot twice. My original file looks (at that part) like this:

RUN wine wineboot --init \
		&& /scripts/waitonprocess.sh wineserver \
		&& winetricks --unattended dotnet40 dotnet_verifier \
		&& /scripts/waitonprocess.sh wineserver

The call to the waitonwineprocess script is required after each call to wine or Winetricks, because those commands might start some work in the background and we need to wait before we can proceed.

Hope you have some luck on getting it to work.

@sukeyisme
Copy link
Author

on building ,docker can not set --volumes-from ,only can set --network to link network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants