# To list images docker images # To list containers docker ps -s # To build Dockerfile docker build -f Dockerfile . -t mahesh/nginx # To run inline. docker run -p 80:80 mahesh/nginx # To run in backround. docker run -d -p 80:80 mahesh/nginx # To kill container. docker kill