Raunak Jain has Published 98 Articles

How does one remove a Docker image?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 11:39:49

2K+ Views

If you have been using Docker for quite a long time now, you might have several unused images already existing in your local machine. These images might be previously downloaded older versions, or simply an image that you downloaded for testing. These images take up a lot of space unnecessarily ... Read More

How do I run a command on an already existing Docker container?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 11:36:00

4K+ Views

Suppose you have already created a Docker container previously and have worked with it. Now, you have stopped the container. So, the container is in exited state. What if you want to run a command inside the container?Typically, there can be two cases. Either the container is stopped using the ... Read More

How do I pass environment variables to Docker containers?

Raunak Jain

Raunak Jain

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

1K+ Views

Suppose you are using a MySQL Docker container and you want to pass environment variables to your container while running the container. It’s always a good idea to isolate the services from the configuration and it’s always advised to use environment variables for this purpose.Predominantly, there are three different ways ... Read More

How do I get into a Docker container's shell?

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 11:32:03

15K+ Views

Once you have your Docker container up and running, you can work with the environment of the Docker container in the same way you would do with an Ubuntu machine. You can access the bash or shell of the container and execute commands inside it and play around with the ... Read More

From inside of a Docker container, how do I connect to the localhost of the machine

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 11:28:12

13K+ Views

Suppose you have an Nginx web server running inside an Nginx container in your host machine. And you have a MySQL database running in your host machine. Now, you want to access the MySQL server in your host machine from the Nginx container. Also, the MySQL is running on your ... Read More

Copying files from Docker container to Host

Raunak Jain

Raunak Jain

Updated on 06-Aug-2021 11:26:49

2K+ Views

We can use the Docker build command to build Docker images using a build context. The build context contains all the files which are required to create your containerized application environment. This includes the Dockerfile to build the Docker images, source code of the application, Dockerignore files, all the files, ... Read More

Top skills that would be handy before taking up a technical role

Raunak Jain

Raunak Jain

Updated on 27-Oct-2020 08:15:35

60 Views

Getting through all the tedious interview rounds of big tech giants for internships and jobs is in itself a big task. But once you clear the interview rounds and secure a job or an internship, the journey does not end there. In fact, this will be the time you need ... Read More

Running Docker Container as a Non Root User

Raunak Jain

Raunak Jain

Updated on 27-Oct-2020 08:09:27

6K+ Views

When you run an application inside a Docker Container, by default it has access to all the root privileges. You might have noticed that when you open an Ubuntu Docker Container Bash, you are logged in as the root user by default. This can prove to be a major concern ... Read More

Creating a MySQL Docker Container

Raunak Jain

Raunak Jain

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

387 Views

One of the most important features of Docker Containerization is that it creates a bounded environment for running the Application with all the necessary dependencies and packages installed. Most applications require a backend database to store data points. Oracle provides Docker Images for running MySQL inside Containers and thus it ... Read More

User defined bridge on Docker network

Raunak Jain

Raunak Jain

Updated on 27-Oct-2020 08:06:27

854 Views

In this article, we are going to discuss why you should use a user-defined bridge network over default bridge networks. We will also demonstrate the same using practical examples.If you use a user−defined bridge for Container networking, all the Containers in that network automatically exposes all the required ports to ... Read More

Advertisements