DOCKER CHEAT SHEET List and Info List locally stored static docker images $ docker images List running containers $ docker ps List running and stopped containers $ docker ps -a Running, Stopping and Deleting Start an new container instance, make it terminal interactive, keeps the stopped container: $ docker run -it IMAGE_ID Start an new container instance, make it terminal interactive, and delete the stopped container after exiting: $ docker run -it --rm IMAGE_ID Resume stopped container(and attached to interactive terminal): $ docker start -ai CONTAINER_ID Delete a stopped container: $ docker rm CONTAINER_ID Delete ALL stopped container with sending SIGKILL: $ docker rm -f docker ps -aq Additional Running Options Specifying a working directory: $ docker run {-it --rm} -w=/MY/WORKING/DIRECTORY Mapping local directory to container directory: $ docker run {-it --rm} -v /LOCAL/DIR:/CONTAINER/DIR