Home » DevOps

DevOps

Docker Link via Ambassador Container Example

In this post, we feature a comprehensive article on Docker Link via Ambassador Container. I am going to demonstrate how the Docker Containers can be connected across Docker Hosts by using Ambassador Container or Pattern. To understand about connecting Docker Containers across Docker Hosts by using Ambassador Pattern, we must first understand the concept of linking Docker Containers in a ...

Read More »

Docker Install on Ubuntu Example

With this example, we are going to demonstrate how to install Docker on Ubuntu. 1. What is Docker? Docker is a platform used to develop, deploy, and run applications by using containers. Docker consists of: Docker Engine – lightweight and powerful open source containerization technology combined with a workflow for building and containerizing your applications.Docker Hub – SaaS (Software as a Service) service for sharing ...

Read More »

Docker Install on CentOS Example

With this example, we are going to demonstrate how to install the Docker on CentOS? Table Of Contents1. What is Docker?2. What is CentOS?3. Steps for Installation of Docker on CentOS4. Installation of CentOS4.1 What is a Virtual Machine? 4.2 What is Oracle VM Virtual Box?4.3 Installation of Oracle VM Virtual Box4.4 Download CentOS4.5 Create a New Virtual Machine4.6 Install ...

Read More »

Docker Command Line Example

With this example, we are going to demonstrate Docker, Architecture of Docker, Virtualization techniques, Docker Registries and Docker Command Line Interface (CLI). 1. What is Docker? Docker is a platform used to develop, deploy, and run applications by using containers. Docker consists of: Docker Engine – lightweight and powerful open source containerization technology combined with a workflow for building and ...

Read More »

Docker Test Example

1. Introduction Continuous integration and continuous deployment has become one of the most common use cases of Docker early adopters. CI/CD merges development with testing, allowing developers to build code collaboratively, submit the master branch, and check for issues. This allows developers to not only build their code, but also test their code in any environment type and as often ...

Read More »

Docker Tutorial for Java Developers

1. Introduction So in this article, we will explain what is Docker and why do we use Docker. Going further we will learn some concepts of Docker and later, we will see how to create Dockerfile. We will then create Docker Image from Dockerfile. And finally, we will see how to run Docker images in the container using java code. ...

Read More »

Docker Swarm Tutorial

1. Introduction This post introduces Docker Swarm – the Docker Engine’s Swarm mode. The Swarm mode enables multiple machines running Docker Engines to collaborate in a cluster. Let us explore the basics of this.                 To follow the examples provided here you will need Docker Engine 1.12 or above to be installed in ...

Read More »

Jenkins Docker Image Example

1. Introduction In this post we will learn about how to install and configure Jenkins through the Jenkins Docker image. This is the official Docker image of Jenkins available from the Docker hub here. Please ensure that you have Docker engine and Docker-Compose installed to try out the examples provided in this post.           2. Install ...

Read More »

Docker Environment Variables Example

1. Introduction In this post, we will discuss different ways to pass and set environment variables into a Docker container. Typically, when a new container is created Docker assigns it a few environment variables by default like so: $ docker run alpine:latest env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=de2c993a62fb HOME=/root Let us now explore what options do we have to inject our custom environment ...

Read More »

Docker Container Networking Tutorial

1. Introduction In this post, we will learn the basics of Docker container networking in a single host setup. We will see the basic inrastructure provided by the Docker Engine for container networking, the “Docker network” family of commands, and the basics of creating user-defined networks. We wil not cover networking with containers in multiple hosts setup here. 2. Docker ...

Read More »