Raunak Jain has Published 98 Articles

How to remove old Docker containers?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 12:20:46

560 Views

Docker allows you to remove old and stale containers that are of no use to you. You can use the Docker rm or Docker container rm commands to do so. However, before you start removing your containers, you need to make sure that none of your containers are actively running. ... Read More

How to list images in Docker?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 12:18:02

6K+ Views

Docker provides a plethora of useful Docker commands that will help you to create, manipulate, and manage Docker objects such as volumes, images, containers, networks, etc. If you have been working with Docker for a long time now, you might have several Docker images already in your machine. Keeping track ... Read More

How to list containers in Docker?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 12:14:36

14K+ Views

Managing multiple Docker containers in a single host machine through a single command line can become tough. Hence, it’s better to know the Docker commands to manage containers the best possible way. Docker provides us with many command line tools and utilities to manage containers. In this article, we will ... Read More

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

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 12:10:52

9K+ Views

If you are working with Docker for a long time now, you might already have lots of containers running in your host machine. At times, it becomes really difficult to keep track of all these containers. Moreover, if you are on a network or using compose, there might be several ... Read More

How to force a clean build of a Docker Image?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 12:05:55

9K+ Views

When you execute the Docker pull command or Docker run command, the daemon first checks for a similar image in the local machine by comparing the digests of the image.If it finds a match, then it’s not required to search the registry for the image and the daemon can simply ... Read More

How to edit a file after I shell to a Docker container?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 11:58:21

1K+ Views

While creating Docker images, you specify the build context for the image. The Image build context contains all the files that you want to be included inside the container that you will be from that image. This includes the source code of your application, Dockerfile, other system files, etc. Once ... Read More

How to deal with persistent storage (e.g. databases) in Docker?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 11:55:46

168 Views

You can use Docker volumes to achieve a solution for persistent storage in Docker. There are bind mounts as well but the problem with them is that they are highly dependent on the underlying host as well as the directory structure. The volumes are completely managed and controlled by Docker. ... Read More

How to copy files from host to Docker container?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 11:53:21

16K+ Views

If you have a Docker container running and you want to copy files from the host machine to the Docker container, there are several ways to do it. One way to do this is by using the ADD or COPY instructions inside a Dockerfile and passing the paths of the ... Read More

How to copy Docker images from one host to another without using a repository?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 11:47:34

2K+ Views

If you have a Docker image in your own local machine and you want that image to be copied into another machine, there are two ways to do that. The first is by pushing that image to a repository such as the ones in Dockerhub registry. You need to have ... Read More

How is Docker different from a Virtual Machine?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 11:44:52

219 Views

When we speak about efficient utilization and proper allocation of computer resources, both virtual machines, and Docker containers are effective in their own ways. In the past few years, Docker containers have gained tremendous popularity among organizations of all sizes. It is very important to understand the use-cases and purposes ... Read More

Previous 1 ... 4 5 6 7 8 ... 10 Next
Advertisements