We can remove a running container or Image using the force option along with the container or Image remove command. We can use the following commands:
$ docker rm -f <container-name> $ docker rmi -f <image-name>