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

stack docker pull assumes /var/ruv/docker.sock exists #972

Closed
Fuuzetsu opened this issue Sep 10, 2015 · 7 comments
Closed

stack docker pull assumes /var/ruv/docker.sock exists #972

Fuuzetsu opened this issue Sep 10, 2015 · 7 comments

Comments

@Fuuzetsu
Copy link
Contributor

If we start docker daemon with -H 172.17.42.1:5555, the /var/run/docker.sock file doesn't exist and stack docker pull fails:

[nix-shell:~/programming/HaskellR]$ stack docker pull
Pulling image from registry: 'tweag/haskellr:latest'
Post http:///var/run/docker.sock/v1.20/images/create?fromImage=tweag%2Fhaskellr%3Alatest: dial unix /var/run/docker.sock: no such file or directory.
* Are you trying to connect to a TLS-enabled daemon without TLS?
* Is your docker daemon up and running?
Could not pull Docker image:
    tweag/haskellr:latest
There may not be an image on the registry for your resolver's LTS version in
stack.yaml

In the meantime,

docker -H 172.17.42.1:5555 pull tweag/haskellr:latest works fine so maybe stack should allow us to pass in extra flags to stack docker pull.

@borsboom
Copy link
Contributor

Did you try setting the DOCKER_HOST environment variable?

@Fuuzetsu
Copy link
Contributor Author

That works, thanks!

@snoyberg
Copy link
Contributor

Perhaps this would be a good q&a to copy over to stack overflow for future
searches?

On Thu, Sep 10, 2015, 4:01 PM Mateusz Kowalczyk notifications@github.com
wrote:

Closed #972 #972.


Reply to this email directly or view it on GitHub
#972 (comment).

@Fuuzetsu
Copy link
Contributor Author

@borsboom While I have your attention, is there anywhere I can see the dockerfiles used for fpco images? I'm currently getting

[nix-shell:~/programming/HaskellR]$ stack --docker build
/bin/bash: /opt/host/bin/stack: No such file or directory

That image is based on FROM fpco/stack-build:lts-2.14 but I can't find the dockerfile for that to check what changed.

Sorry for piggybacking this issues, don't know where to ask otherwise, are you on IRC?

@snoyberg I'll do that now and post a link in few minutes.

@borsboom
Copy link
Contributor

While I have your attention, is there anywhere I can see the dockerfiles used for fpco images?

@Fuuzetsu See #624

[nix-shell:~/programming/HaskellR]$ stack --docker build
/bin/bash: /opt/host/bin/stack: No such file or directory

Stack is supposed to mount itself in the container at that location, but it would appear that something is going wrong. Can you show --verbose output?

Sorry for piggybacking this issues, don't know where to ask otherwise, are you on IRC?

The haskell-stack mailing list is a good place. I'm not on IRC.

@Fuuzetsu
Copy link
Contributor Author

Let's continue in #974

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

3 participants