Docker Articles

Page 9 of 12

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

Raunak Jain
Raunak Jain
Updated on 27-Oct-2020 120 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 to upskill yourself in order to keep up with the pace of shift in technological stacks that the tech industry goes throughIn this article, we will be discussing top skills that would be very handy if you would learn it before taking up the job or internship position. We will ...

Read More

Running Docker Container as a Non Root User

Raunak Jain
Raunak Jain
Updated on 27-Oct-2020 7K+ 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 in terms of security of the application. Any outsider can misuse this and hack the entire Container along with all the other files and applications running inside the Docker Container. Hence, it becomes very important to perform most of the trivial operations as a non root user wherever possible.In this ...

Read More

User defined bridge on Docker network

Raunak Jain
Raunak Jain
Updated on 27-Oct-2020 1K+ 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 each other but not to the external world. This increases interoperability among the containers and provides better isolation.When you create Docker Containers using the default bridge network, accessing each other can only be done using IP addresses. But in case of user-defined bridge networks, you can access them using names ...

Read More

Docker host network vs bridge network

Raunak Jain
Raunak Jain
Updated on 27-Oct-2020 5K+ Views

There are two types of single−host networks available for Docker Networking - “host” and “bridge” networks. Single−host networks mean that their effect is local to each individual host.In case of a host network, a particular Docker Container can directly use the Networking of the host for sending and receiving the packets. In the case of a bridge network, it requires port mapping to communicate.To understand them better, let’s create a nginx container with the help of host networking. Before creating a nginx container, let’s list all the available networks.sudo docker network lsYou will find a network with the name host ...

Read More

Working with Docker Swarm

Raunak Jain
Raunak Jain
Updated on 27-Oct-2020 1K+ Views

If you are working on a microservice architecture, where you need to work on different project components on different machines and create a master slave architecture where the master nodes control the slave nodes, deploying your project through Docker Swarm might save you a lot of time, effort and resources.Docker Swarm is basically a cluster of physical or virtual machines called nodes which run docker containers separately and you can configure all these nodes to join a cluster managed by the master node called the swarm manager. It is an orchestration tool which allows you to manage multiple Docker Containers ...

Read More

Create a simple Numpy Jupyter Notebook using Docker

Raunak Jain
Raunak Jain
Updated on 27-Oct-2020 512 Views

Machine learning and Data Science have certainly become the new buzzword. Organizations are now trying to adopt Data Analytics and Machine learning techniques to predict their sales and to increase their revenue. No doubt, specializing machine learning techniques would surely give you an upperhand in today’s corporate world. If you want to build a machine learning model in a dynamic and contained environment, there can be no better option than using Docker containers.You can build and run your Machine Learning models easily inside Docker Containers with the help of Jupyter Notebooks. In fact, the packed environment of a Docker Container ...

Read More

Build a flask App using Docker Compose

Raunak Jain
Raunak Jain
Updated on 27-Oct-2020 2K+ Views

Docker Compose allows you to build multi-container Docker applications. If you are working on a microservice project where you have different nodes working on different parts of the project, Docker Compose is exactly what you need. Using Docker Compose, you can work on different components of the project on different Docker Containers and combine them to create a single application.In this article, we are going to discuss how to build a Flask application which uses Python modules and we will try to run it inside a Docker Container using Docker Compose.First, you need to install Docker Compose in your local ...

Read More

How to use an OVS Bridge for Networking on Docker?

Raunak Jain
Raunak Jain
Updated on 27-Oct-2020 3K+ Views

OVS bridges or Open vSwitch bridges are used as an alternative to the native bridges in linux. It supports most features which are in a physical switch while also supporting multiple vLANs on a single bridge. It is also widely used in Docker networking because it proves to be useful for multiple host networking and provides more secure communication compared to native bridges.In this article we will discuss how to perform docker networking using the Open vSwitch bridges (OVS). We will discuss the various commands which would help you to install OVS and the OVS utility for docker. We will ...

Read More

Python Library API for Docker

Raunak Jain
Raunak Jain
Updated on 27-Oct-2020 853 Views

You can access, manage and manipulate docker objects such as containers, images, clusters, swarms, etc. using a python library API. You can do pretty much anything that docker commands let you do. This comes very handy when you are using a python app such as django or flask and you want to maintain your docker container using the same python script that you use for the application.To use the python library API for docker, you need to install a package called docker−py. You can do so using the following pip command. If you have python 2 installed, replace pip3 with ...

Read More

Running a static site on Apache Server from Docker

Raunak Jain
Raunak Jain
Updated on 27-Oct-2020 2K+ Views

No doubt that Docker containers are now being widely used for various purposes in the development lifecycle right from building, distributing, testing to deployment of the products. It allows developers to work on different parts of the project, collaborate with other developers working on the same project, helps in version management of the project and in some cases, also allows to test the product by hosting on its own servers.Let’s say you have built a static website inside the docker container and now you want to test that website by running it on a browser. Docker allows you to create ...

Read More
Showing 81–90 of 111 articles
Advertisements