List of 20 docker commands and their use cases with examples.

docker pull – used to pull images from the docker repository(hub.docker.com) docker run – used to create a container from an image docker ps – used to list the running containers docker ps -a – used to show all the running and exited containers docker exec – used to access the running container docker stop – stops a running container docker kill – kills the container by stopping its execution immediately. docker commit – creates a new image of an

Read more

List of docker file instructions and its Brief Summary?

 FROM command allows you to create a base image such as an operating system, a programming language, etc.  RUN instruction is used to run specified commands. You can use several RUN instructions to run different commands. CMD: If you want to run a docker container by specifying a default command that gets executed for all the containers of that image by default, you can use a CMD command. ENTRY POINT: It starts the process we want to run after starting the

Read more

Components of Docker and its brief summary.

Docker client: it is used to communicate with the docker server (dockerd) Docker server: it contains dockerd and containerDocker image: A Docker image is a template written in YAML that contains instructions for the Docker container.Docker registry: The Docker registry is where you would host various types of images and where you would distribute the images from.Docker container: Docker container is an executable package of applications and its dependencies bundled together.

Read more