There is a list of very useful commands regarding containers.

  • List images

$ docker images

  • Downloading or pulling an ubuntu image

$ docker pull ubuntu

  • Run a container based on the local image

$ docker run -it ubuntu bash

  • List containers which are running

$ docker ps

  • List all containers

$ docker ps -a

Advertisements