Skip to content

coder-learning/DockerCheatSheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

DockerCheatSheet

This repo contain the cheat sheet for commonly used scripts in docker.

Topic

Alt text

Virtual Machines vs Docker Containers

Alt text

Docker Command as Life Cycle

Alt text

Docker command's

  • 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>>

About

This repo contain the cheat sheet for commonly used scripts in docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published