I am trying to delete a docker container by this command:
docker rmi
Obviously, I have replaced the Image-Id by the Id I get u
You may also find that you have stopped containers that are causing the lock. Remove these first using:
docker rm $(docker ps -q -a)
Here we are listing the docker processes by just the ID and then removing those; however, docker rm will only remove stopped containers.
Next go back and remove the images using:
docker image rm