What is the difference between CMD and ENTRYPOINT in a Dockerfile?

In this article, we will find the differences between CMD and ENTRYPOINT in a Dockerfile?

The ENTRYPOINT specifies a command that will always be executed when the container starts. The CMD specifies arguments that will be fed to the ENTRYPOINT. Continue reading What is the difference between CMD and ENTRYPOINT in a Dockerfile?

What is difference between Docker kill and Docker stop commands

In this article, we will see the difference between Docker kill and Docker stop commands.

1. docker stop: Stop a running container (send SIGTERM, and then SIGKILL after grace period) […] The main process inside the container will receive SIGTERM, and after a grace period, SIGKILL.
Continue reading What is difference between Docker kill and Docker stop commands

How to get a Docker container’s IP address from the host

In this article, we will see how to get a Docker container’s IP address from the host using different methods.

We can get the docker container IP using inspect or by chekcing hosts file. Continue reading How to get a Docker container’s IP address from the host

How to copy files from Docker Container to host

In this article, we will see how to copy files from Docker Container to host step by step.

We can copy files from host to docker container using docker cp command. Using the same cp command, we can docker container to docker host.

Copy files from host to Docker container

Syntax to copy files from host to Docker container:

sudo docker cp source_path container_id/name:destination_path

Continue reading How to copy files from Docker Container to host

How to copy files from host to Docker container

In this article, we will see how to copy files from host to Docker container step by step.

We can copy files from host to docker container using docker cp command. Using the same cp command, we can docker container to docker host.

Copy files from host to Docker container

Syntax to copy files from host to Docker container:

sudo docker cp source_path container_id/name:destination_path

Continue reading How to copy files from host to Docker container

Cannot connect to the Docker daemon at unix docker.sock. Is the docker daemon running?

In this article, we will see the solution for the Docker error:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Cannot connect to the Docker daemon at unix docker.sock. Is the docker daemon running? Continue reading Cannot connect to the Docker daemon at unix docker.sock. Is the docker daemon running?

How to check docker is running or not on Linux

In this article, we will see how to check docker is running or not on Linux.

ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

We can find the docker engine is running or not using service, systemctl or simply running docker info/version command. We will find the docker using all these methods.

How to check docker is running or not on Linux

1. Just run docker info. This will show us docker is running or not.

docker info

How to check docker is running or not on Linux

2. We can also get docker information by checking process information.

ps -ef | grep docker

The above output is sayign its not started.

If it is started, output is like below.

3. We can also find the status of docker service using below commands.

sudo systemctl status docker

or

sudo service docker status

How to start stop and restart docker service on Linux

In this article, we will see how to start stop and restart docker service on Linux.

We can start, stop or restart docker in Linux using service or systemctl commands with the sudo privleges. Also we can start using docker daemon i.e. dockerd. Continue reading How to start stop and restart docker service on Linux

How to start and stop minikube on Linux

In this article, we will see How to start and stop minikube on Linux step by step.

minikube is a tool that lets you run Kubernetes locally. minikube runs a single-node Kubernetes cluster on your personal computer (including Windows, macOS and Linux PCs) so that you can try out Kubernetes, or for daily development work. Continue reading How to start and stop minikube on Linux

docker: Error response from daemon: pull access denied for

In this article, we willl find the resoultion for the below error:
docker: Error response from daemon: pull access denied for helloworld, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied.
See ‘docker run –help’.

docker Error response from daemon pull access denied for

Continue reading docker: Error response from daemon: pull access denied for