Docker Container Tutorial - list of all commands and details

In this post you will find most used docker commands and short descriptions of them. At the end you can find some Unix commands which will make your life easier working with Docker Containers.
Note: If you see containerId, most likely, it can be replaced by container name.

docker run -itd -v ~/Desktop/build/index.html:/var/www/html/index.html -p 8080:80 imageId - - run the image, map local port 8080 to container's 80, map the index.html from local machine(~/Desktop/build/) to the file in the container(/var/www/html/index.html)

docker stats containerId - resource usage statistics

docker build -t imageName . - build docker image with the name imageName from the Docker file in the current directory

docker port containerId - list port mapping

curl http://localhost:5000/v2/_catalog - list the images in the private registry