I\'ve the following images:
alex@alexvps:~$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
&
The reason for the error is that even though the image did not have any tag, there still exists a container created on that image which might be in the exited state. So you need to ensure that you have stopped and deleted all containers created on those images. The following command helps you in removing all containers that are not running:
docker rm `docker ps -aq --no-trunc --filter "status=exited"`
Now this removes all the dangling non-intermediate images:
docker rmi `docker images --filter 'dangling=true' -q --no-trunc`
Note: To stops all running containers:
docker stop `docker ps -q`