This repo contain the cheat sheet for commonly used scripts in docker.
- To list image in our local machine
$ docker images
- To pull image from docker registry
$ docker pull <<repository>>:<<tag>>
- To run the image in a container. PS: Executing the below commond will create the container
$ docker run <<imageID>>
or
$ docker run <<repository>>:<<tag>>
- To list all running container
$ docker ps
- To list all container, irrespective of their running status
$ docker ps -a
- To Stop a running container
$ docker stop <<containerId>>
- To remove a container
$ docker rm <<ContainerId>>
- To remove a image
$ docker rmi <<imageId>>


