Could not pull Docker image: fpco/stack-build:lts-17.12 — bad file descriptor

Viewed 278

Following the steps mentioned in the Stack documentation, this is stack.yml:

docker:
  enable: true
local-bin-path: ./build/
resolver: lts-17.12
packages: [.]
extra-deps: []

Running stack build results in the following error:

Pulling image from registry: 'fpco/stack-build:lts-17.12'
fork/exec /usr/local/bin/com.docker.cli: bad file descriptor
Could not pull Docker image:
    fpco/stack-build:lts-17.12
There may not be an image on the registry for your resolver's LTS version in
your configuration file.

Despite the lts-17.12 tag definitely existing on Dockerhub. Adding the specific image hash in stack.yml doesn't help.

Is there anything special to do or to add to stack.yml to overcome this error?

1 Answers

Just run docker pull fpco/stack-build:lts-17.12 in your terminal, and try your command(maybe stack setup) again.

Related