delete docker container without stopping oc command line code example Example: docker remove all dead containers $ docker rm $(docker ps -a -q)