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
Container from Dockerfile different than manually created #12795
Comments
I updated to version 1.6.0, which seems not to make any difference. |
I know nothing about 'wine' but let me ask some questions...
|
Sorry for the vague and lengthy problem description so far.
The error message I get is this:
After scrolling through tons of trace messages from wine it seems that indeed more stuff is written to files in the interactive approach compared to the dockerfile approach. When doing
Then the error message is gone and winetricks is executed. However, it does not properly install dotnet40 as it is expected. I guess this is because ASSUMPTION: When using the dockerfile approach, docker assumes the command is finished after Is there any way to tell docker to wait a little longer? |
Further investigation shows that I tried the following command while working interactively in the container:
After that tons of additional trace messages are following. Once trace message output stops another So any idea how to handle this in a dockerfile? |
Finally found a way how to wait. Basically I'm waiting on the core process
The question is how does this fit with automated builds on docker hub? Will I get a reliable build with it? What's best practice for such an issue anyway? Is there a place where this can be properly documented? |
For better or worse I think you're stuck with this type of solution, unless you can find a way to make |
re: docs - Will try to add a few lines to section one process per container. Do you know which repository to fork? |
docker itself. All docs are under the "docs" dir. |
@suchja I'm going to close this issue. If you do update the docs you can open a PR for that. Hope that's ok. |
Hi, joining in the discussion a bit late here (specially signed in for this response with my work github account due to the lack of a private one). Wanted to let you know these insights helped me a great deal in fixing a very similar issue I have been having for a long time now. What I did was run "wineserver -w" as last command after "wine wineboot --init". "wineserver -w" cleanly waits for all wine related processes in the current wineprefix to finish (as you can read in wineserver --help). This worked for me, just thought I'd share it here in case anyone ever reads back these old questions. |
Description of problem:
Not sure whether this is an issue with docker, but there is a difference when executing commands inside a container versus executing the same commands from a Dockerfile.
So far I have only experienced this issue with
wine
. I have an image with wine installed (see here). The next step is to initialise the wine prefix. Therefore I start a Container from the image withdocker run --rm -it --entrypoint /bin/bash wine:latest
. Inside the container I type the commands as follows:You can see now that
winetricks
is downloading and installing .NET 4.0 framework.Now trying to move
wine wineboot --init
into a new dockerfile like this:After building an image from that Dockerfile, starting a container from it and trying to run the second command:
winetricks --unattended dotnet40
, I do get an error from wine.So why is there a difference between running
wine wineboot --init
interactively in the container versus running it from the Dockerfile?docker version
:Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): darwin/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
docker info
:Containers: 9
Images: 277
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 295
Execution Driver: native-0.2
Kernel Version: 3.18.5-tinycore64
Operating System: Boot2Docker 1.5.0 (TCL 5.4); master : a66bce5 - Tue Feb 10 23:31:27 UTC 2015
CPUs: 4
Total Memory: 1.961 GiB
Name: boot2docker
ID: BY2Q:R6SQ:E7DY:E3QD:TMAL:BFM5:DNVZ:GI3D:FG2M:DZK6:YDBD:TPJ5
Debug mode (server): true
Debug mode (client): false
Fds: 23
Goroutines: 26
EventsListeners: 0
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
uname -a
:Darwin MacBook-Pro.fritz.box 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Environment details:
boot2docker with VirtualBox 4.3.26
The text was updated successfully, but these errors were encountered: