must know commands

docker --version
docker version

Pull the hello-world image from Docker Hub and run a container:
docker run hello-world

docker image ls
docker container ls
docker container ls --all

Pull an image of the Ubuntu OS and run an interactive terminal inside the spawned container:
docker run --interactive --tty ubuntu bash

Pull and run a Dockerized nginx web server that we name, webserver: 
docker run --detach --publish 80:80 --name webserver nginx
arba
docker run -d -p 80:80 --name webserver nginx

shows docker IP
docker-machine ip Default

docker stop webserver
docker start webserver

docker rm webserver