to check whioch containers are running for an image trying to remove code example
Example 1: docker remove dangling images
docker image prune
Example 2: how to remove a docker container
docker container rm [container id]
docker image prune
docker container rm [container id]