You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pull specific images using --docker-auto-pull option #4598
$ stack --docker-auto-pull install
Error: No such object: fpco/stack-build:lts-13.8
Received ExitFailure 1 when running
Raw command: /snap/bin/docker inspect fpco/stack-build:lts-13.8
Standard output:
[]
changed the title [-]--docker-auto-pull option doesn't pull specific images[/-][+]Pull specific images using --docker-auto-pull option[/+]on Feb 20, 2019
@dbaynard The behaviour you're describing is what I would expect. docker inspect is supposed to fail if you don't have the image locally. Stack tries running it to determine whether you have the image, and is then supposed to docker pull the image if that fails with a message that indicates the image isn't there. Something seems to be going wrong in that process, though.
It looks like, at some point, reading the standard output of docker inspect in the case where it exits with an error stopped working, so stack isn't detecting that the error is due to missing image rather than being some other general error.
Activity
[-]--docker-auto-pull option doesn't pull specific images[/-][+]Pull specific images using --docker-auto-pull option[/+]dbaynard commentedon Mar 4, 2019
Hi @falsandtru, thanks for raising this issue. What happens if you try it again, now? Please run with
--verboseand paste the verbose log output here.falsandtru commentedon Mar 4, 2019
falsandtru commentedon Mar 4, 2019
repro:
stack --docker --docker-auto-pull --verbose installdbaynard commentedon Mar 4, 2019
That docker inspect command is failing for me, on arch
dbaynard commentedon Mar 4, 2019
Yet after a
docker pull fpco/stack-build:lts-13.10I can rundocker inspect fpco/stack-build:lts-13.10(though not any other version).dbaynard commentedon Mar 4, 2019
@borsboom Would you take a look, please. My docker is:
Note also that
docker inspect fpco/stack-buildworks.I wonder if the behaviour of
inspecthas changed?borsboom commentedon Mar 5, 2019
@falsandtru I'm able to reproduce this locally.
@dbaynard The behaviour you're describing is what I would expect.
docker inspectis supposed to fail if you don't have the image locally. Stack tries running it to determine whether you have the image, and is then supposed todocker pullthe image if that fails with a message that indicates the image isn't there. Something seems to be going wrong in that process, though.borsboom commentedon Mar 6, 2019
It looks like, at some point, reading the standard output of
docker inspectin the case where it exits with an error stopped working, sostackisn't detecting that the error is due to missing image rather than being some other general error.Docker: fix pull missing images with `--docker-auto-pull` (fixes #4598)
borsboom commentedon Mar 6, 2019
PR with fix: #4604
Merge pull request #4604 from commercialhaskell/4598-fix-docker-auto-…
snoyberg commentedon Mar 19, 2019
This was fixed in #4604, closing.