Docker Community Forums

Share and learn in the Docker community.

Cannot delete docker images


so I was just messing around with docker to learn more about it. I didn’t notice, that I’ve build like 30 images, which I’m not able to remove anymore.
My system drive is completely full (0 Bytes left), my Docker doesnt start anymore, and my docker wsl-partition is nearly 31 GB big.

In case docker starts, when I try to delete the images, I get a 502 bad request error. What can I do now?

Alright, nevermind, I managed it by uninstalling docker.

For future references you can run the docker prune commands, which will clean your system, for your case specifically it would be docker image prune -a this will remove all images that are unused and/or dangling.