Basic commands -
docker version <-- installed docker version
docker info <- information about docker
docker container run --publish 80:80 nginx <---- to start a container
docker container run --publish 80:80 --detach nginx <---- to start the container in the background.
to start with custom name
docker container ls <-- list running docker containers
docker container stop "unique number of the container id" <-- to stop docker container
docker container ls -a < -- show all containers including stopped containers
docker container logs myweb < --check logs for a single container
docker container rm "unique container ids " < -- to remove stopped docker containers
docker container rm -f "unique container IP"