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
Deleting an image built by docker-compose results in "No such image" error on next run #1113
Comments
This will be fixed by #874, the image is only used for the intermediate |
Going to close this issue, please follow along in #874 for the fix |
I am still running into this issue I had to run docker-compose rm and then docker-compose up before it would work correctly |
I ran into this issue as well @justechn suggestion worked for me as well. |
Same here. It happend after I did docker rmi on all images, because the "no space left on device" error appeared: |
Deleting all images is a bad idea. If you need to recover from this state you should be able to Instead of removing all images, I would suggest using something like https://github.com/yelp/docker-custodian to remove the oldest unused images (and containers). |
Run
|
Removed old image and encountered the same issue today. Removing all containers helped. |
Just ran into this issue. I had not space on my system so decided to remove all the images forcefully. |
Same problem |
Got the same problem. Removed all images and some of them throw this error when doing |
As it was said before, you could use |
Feature request: Provide a command which removes old unused images. Why? Right now I need to use the above statement which is not standard documentation and need to read that used "docker rmi" is a bad idea (see above). I believe it's not good to have a backlog of images which never will be used again. I use Docker 17.07 and run into this problem again. |
Wasted an hour on this issue (using most recent |
Still evaluating PyCharm... same issue :( |
Same issues here, removing all the images and then starting
|
Creating an image with
docker-compose up
and shutting it down and subsequently deleting the underlying image results in nextdocker-compose up
command erroring out with "No such image" error.Steps to reproduce:
docker-compose up
docker rm -f metcdocker_metc
docker-compose up
againYou will see the error:
The referenced image was the first of deleted images:
And the way to fix it is to run
docker ps -a
and delete the reference to the container that used that imageEven though the container has exited, it still seems to be referencing deleted image.
Running
docker-container up
again works after deleting the already-deleted image.The text was updated successfully, but these errors were encountered: