-
Notifications
You must be signed in to change notification settings - Fork 842
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
Support Docker integration on Windows #2421
Comments
Docker integration does not support Windows at the moment. See https://docs.haskellstack.org/en/stable/docker_integration/#prerequisites and #194. Since we don't have a specific issue covering Docker support on Windows, I'll rename this one and leave it open. If you'd like to take a stab at adding support, that would be most appreciated. Aside from figuring out how to do user ID mapping on Windows, the code currently assumes that paths from the host can be used exactly in the container, which is not the case for Windows style paths. |
This seems worth working on now that Docker for Windows is out of beta, which hopefully has decent bind-mounted filesystem performance (unlike Docker Machine, which was basically unusable for anything more than trivial). |
thank you :) |
Confirming the issue still exists with Docker Toolbox on Windows 7:
as @borsboom pointed out:
|
hm, I'm playing now with Docker for Windows on Windows 10 (Creators Update) and it seems that this docker is running fpco/stack-build container just well. |
I tried a stack based project, but I got this error:
|
I bet the problem is that the path parsing assuming the path is for the host platform. Not sure if there's an easy way to fix. My suggestion would be to open a shell in the docker container and just use that. |
Same problem as @varosi . I think I'll just use the fpco docker image, but use a docker volume or something to get something working... But then I won't have a .exe as binary. This is problematic.... |
3 years? docker for windows is way past GA and very stable. Volumes are fully functional & Network is fully functional. |
@tdaniely A pull request would be welcome! |
@borsboom It seems that this issue is still live. My understanding is that all the problems resolve around the fact that Stack is not platform independent and Stack has no concept of heterogeneous operating environments as we commonly find using Docker. If my assessment is correct I am prepared to try and create a PR for you. |
Hmm, I'm not sure I'd describe the problem quite that way. The way I should add that not much work is being on on Stack's Docker support anymore. That said, if this is something you need and are willing to implement and then maintain going forward, then by all means go ahead. |
In that case I will go ahead as I need Haskell woking under Docker on
Windows 10 with Ubuntu 18.04 as the target environment for Docker.
…On Wed, Feb 6, 2019 at 4:24 PM Emanuel Borsboom ***@***.***> wrote:
Hmm, I'm not sure I'd describe the problem quite that way. The way stack
works with Docker is that it re-executes a Linux stack inside the
container to perform the build (so the "host" stack really just sets up
the environment but everything is done in the container "natively"). The
main problem I'm aware of is that stack will try to pass Windows paths to
the in-container stack, which of course doesn't work.
I should add that not much work is being on on Stack's Docker support
anymore. That said, if this is something you need and are willing to
implement and then maintain going forward, then by all means go ahead.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2421 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAWTNeD5tzHDZdJhw_v4N2o8NzNHm_Ruks5vK1YygaJpZM4JYzVX>
.
|
Any updates on this? Did you work on this @jgossage? |
I have done nothing.
…On Wed, Apr 22, 2020 at 8:44 AM David Muhr ***@***.***> wrote:
Any updates on this? Did you work on this @jgossage
<https://github.com/jgossage>?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2421 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACZGNK3K7QL75YLRKJDLD3RN3RBJANCNFSM4CLDGVLQ>
.
--
Jonathan Gossage
|
I'm working on this. With the changes from branch e11adb4 (and It would be great to test it on different configurations, so if any of you are still interested in it, please give it a spin and come back with the results. |
Just hit this issue when trying to
Any updates? |
I'm trying to get any stack command to work with
After enabling docker, stack told me to use the comman
stack docker pull
, which can through fine and installed the docker image.From now on, every time I try any stack command, stack quits right away with the message:
I really want to use Docker here to get a consistent environment. Using stack:
Version 1.1.2, Git revision c6dac65e3174dea79df54ce6d56f3e98bc060ecc (3647 commits) x86_64 hpack-0.14.0
on newest Windows 10 Pro, and dockerversion 1.12.0, build 8eab29e, experimental
.EDIT: I'm pretty sure it is somehow related to this line, but I don't understand enough of it to try and fix it.
The text was updated successfully, but these errors were encountered: