Found 1383 Articles for Open Source

Build a flask App using Docker Compose

Raunak Jain
Updated on 27-Oct-2020 07:59:03

1K+ 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
Updated on 27-Oct-2020 07:57:52

2K+ 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
Updated on 27-Oct-2020 07:56:33

679 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
Updated on 27-Oct-2020 07:54:56

1K+ 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

Maintain and Manipulate Docker Containers

Raunak Jain
Updated on 27-Oct-2020 07:53:24

214 Views

Knowing how to create a dockerfile and build a docker image using that dockerfile, we can move ahead and dive deep into more advanced ways to manipulate docker containers. When we talk about manipulating docker containers, we include running, listing, restarting, cleaning up the dangling containers, running containers in interactive and detached modes, creating containers using executable images, executing commands inside docker containers using exec command and starting a bash inside a container, accessing logs from a docker container and killing or stopping a docker container.Without any further ado, let’s dive deep into manipulating docker containers.Running docker containersAfter you have ... Read More

Building a full-fledged data science Docker Container

Raunak Jain
Updated on 27-Oct-2020 07:50:23

116 Views

No doubt that the buzzing words in the technological world these days are machine learning and artificial intelligence. More rapidly than ever, organizations are now trying to adopt machine learning techniques to analyse and improve their businesses and to provide more customer satisfaction. While on the other hand, the revolutionary concept of containerization has made the lives of millions of developers a lot easier and has helped them in adopting better techniques to maintain, reuse and keep track of their projects a seamless experience.In this article, we will talk about how to build a full fledged data science container. We ... Read More

How to run a command inside Docker Container?

Raunak Jain
Updated on 27-Oct-2020 07:49:50

2K+ Views

After you build a docker image and you have created a running instance of it or in other words, you have created a docker container, you might want to execute some commands inside the docker container to either install a package or print something or browse through the directories inside the container. Docker provides you with several ways to do exactly the same. You can easily access the container environment, execute commands inside the environment and access or create files and directories there too. In this article, we will discuss some ways to run or execute commands inside the docker ... Read More

Docker Image tags and how to use them

Raunak Jain
Updated on 27-Oct-2020 07:46:27

948 Views

Docker Image tags are simple labels or aliases given to a docker image before or after building an image to describe that particular image. It can be the version of the project or the container, features of the image, technologies used in the image or pretty much anything you want. It plays a key role in the overall software development life cycle because it helps you keep track of the different parts of your project as well as help you in version management of the product.While pulling an image, you can specify the tag of the image you want or ... Read More

Searching and pulling Docker Images from Dockerhub

Raunak Jain
Updated on 27-Oct-2020 07:45:21

284 Views

The official Docker registry contains a lot of pre-built images and publicly available customized images that are very useful and can be easily pulled by the users in their local machine and used as base images for their projects. In fact, you can also build your own customized docker image using one of those publicly available docker images and push it back either in a public or private mode.In this article, we will discuss how to search for a docker image using the search command through the command line interface. We will also see how to filter the search results ... Read More

Publishing a Docker Image on Dockerhub

Raunak Jain
Updated on 27-Oct-2020 07:44:02

236 Views

Dockerhub or the official docker registry consists of numerous pre-built Docker Images as well as customized images by other users that you can pull to your system if they have been made public. In order to pull or push images to the docker registry, you need to first have an account in Dockerhub.To create an account and a repository in dockerhub, you can follow these steps −Visit the docker hub (Link − https://hub.docker.com/).Create an account or if you already have one, sign in with your account details.After signing in, click on create repository on the welcome page.Fill in the details ... Read More

Advertisements