list all images

docker images

or

docker image ls

list all containers

docker ps -a

list running containers

docker ps

create a new container of an image, and execute the container.

docker run IMAGE

Here is IMAGE_ID instead of CONTAINER_ID

start a container (after it exited)

docker start CONTAINER_ID # restart it in the background
docker attach CONTAINER_ID # reattach the terminal & stdin

get a bash shell in the container.

docker exec **-it** <container name> /bin/bash

stop a contianer

docker stop [OPTIONS] CONTAINER [CONTAINER...]

remove container