Raunak Jain has Published 52 Answers

How to backup and restore a Docker Container?

Raunak Jain

Raunak Jain

Updated on 27-Oct-2020 07:38:27

Docker allows us to automate the process of building and deploying an application. It also allows us to create a packaged environment to run the application which makes it easily portable and lightweight while also allowing us to keep track of the versions. All of these are possible through Docker ... Read More

How to get a Docker Container IP address?

Raunak Jain

Raunak Jain

Updated on 27-Oct-2020 07:36:56

We all know that we can run our application in a packaged environment called container using Docker. When you want containers to talk to each other, the network they create can be assumed to be a bridge network. Run the following command to get a list of networks.sudo docker network ... Read More

Copy Files from Docker Container to Local Machine

Raunak Jain

Raunak Jain

Updated on 01-Oct-2020 16:15:06

If you are working on a project that requires frequent copying of files and folders either from container to your local machine or from the local machine to the container, docker provides an easy and simple way to do that. If you have already built a docker image which is ... Read More

Mounting a volume inside docker container

Raunak Jain

Raunak Jain

Updated on 01-Oct-2020 16:10:01

In some projects, there might be scenarios where you have created multiple containers for different parts of the project and some of those containers share common files as well. Now, you want to create a shared directory between all the containers such that from all the containers you can access ... Read More

Build and deploy a flask application inside docker

Raunak Jain

Raunak Jain

Updated on 01-Oct-2020 16:00:05

Docker allows you to build, manage and deploy applications inside containers. It provides a packed environment and allows developers to make portable applications by containerizing them. You can easily build a flask application, manage it and make it portable all using a single technology, docker. You can use similar techniques ... Read More

Installing Linux Packages Inside a Docker Container

Raunak Jain

Raunak Jain

Updated on 01-Oct-2020 15:56:04

After you have installed docker on your linux machine, the next step is to create an image and run a container. You need to create a base image of an OS distribution and after that you can add and modify the base image by installing packages and dependencies and committing ... Read More

Combine multiple images using one dockerfile

Raunak Jain

Raunak Jain

Updated on 01-Oct-2020 15:45:23

When you are working on a large project on docker, you need to go through certain phases of the development cycle. Maintaining a different dockerfile for each cycle such as build, release, testing etc. eats up a lot of resources and is highly inefficient when it comes to productivity.In the ... Read More

RUN vs CMD vs Entrypoint in Docker

Raunak Jain

Raunak Jain

Updated on 01-Oct-2020 15:43:26

The commands RUN, CMD and Entrypoint usually cause a lot of confusion among docker developers. Understanding all the three commands conceptually will help to have a clearer understanding of the same.When we try to build an image using dockerfile, the instructions are executed step by step. The first instruction is ... Read More

Running GUI applications on docker in linux

Raunak Jain

Raunak Jain

Updated on 01-Oct-2020 15:38:45

Suppose you are building an application that requires user interface and pops up a window on running the script. And let’s say you want to run that script inside a docker container. Now, you might expect the docker container to run the UI application for you and display the same ... Read More

Using .Dockerignore file

Raunak Jain

Raunak Jain

Updated on 01-Oct-2020 15:31:29

We know that we can run our docker images on cloud services which provide high computations in low cost prices. So, one might wonder why we need to optimize a docker image. Think of a situation where you have copied a large file in your docker container and you actually ... Read More

Advertisements