Skip to content

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

@Fuuzetsu

Description

@Fuuzetsu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions