Author: Ankesh K

How to Push Docker Images to Docker Hub/repository

Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud. To know about Docker in details, click here. The installation and configuration process is described in our different blog. Click here to access that. Here at linuxnix.com, we have a list of activities to be performed in this Docker series. With these tasks, we will be getting a clear picture on docker day-to-day use and the real-time scenarios we face where we need Docker the most. The lists of the activities are mentioned below: Dockerize a 2-Tier Java application by creating a Docker Image. Push the same Docker Image to Docker Hub. Run a container based version of the Application Database using the Docker-Compose file. Ensure data persistence by mounting the data outside of the containers. In this section, we are going to start the second task. To go through the first task, click here. Pushing Docker Image to Docker Hub Docker Hub vs Creating a Local Docker Registry Docker Hub is a cloud-based registry service which allows you to stores the manually pushed images and links it to the Docker Cloud. It provides a centralized resource for container image discovery. This also helps us to deploy images to our hosts in a centralized way. Docker Registry is a storage solution for Docker Images. Just think about GitHub, but for...

Read More

What is Docker-Compose and How to run multiple containers as a single service?

  Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud. To know about Docker in details, click here. The installation and configuration process is described in our different blog. Click here to access that. Here at linuxnix.com, we have a list of activities to be performed in this Docker series. With these tasks, we will be getting a clear picture on day-to-day docker use and the real-time scenarios we face where we need Docker the most. The lists of the activities are mentioned below: Dockerize a 2-Tier Java application by creating a Docker Image. Push the same Docker Image to Docker Hub. Run a container based version of the Application Database using the Docker-Compose file. Ensure data persistence by mounting the data outside of the containers. In this section, we are going to start the third task. To go through the second task, click here. Running an Application with Database via Docker-Compose In the previous blogs, we took a Java project, created a Dockerfile. Built the image using the Dockerfile, created the container, ran it and verified the running application on the port specified. We took the same image and pushed it to the Docker Hub. In this section, we are going to run a database version of this application and run both the container simultaneously via docker-compose. Docker-Compose...

Read More

What is Dockerfile and how to dockerize a 2-Tier Application?

Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud. To know about Docker in details, click here. The installation and configuration process is described in our different blog. Click here to access that. Here at linuxnix.com, we have a list of activities to be performed in this Docker series. With these tasks, we will be getting a clear picture on docker day-to-day use and the real-time scenarios we face where we need Docker the most. The lists of the activities are mentioned below: Dockerize a 2-Tier Java application by creating a Docker Image. Push the same Docker Image to Docker Hub. Run a container based version of the Application Database using the Docker-Compose file. Ensure data persistence by mounting the data outside of the containers. In this section, we are going to start the first task: Dockerize a 2-Tier Application by creating a Docker Image 2-Tier Java Project using Docker We can create a 2-tier Java project using Eclipse(or any IDE) or can clone any public project from any source code repository. Here we are cloning a Github repository where the application assigns tasks to the employee. What is Dockerfile and how to Create it? A Dockerfile is a text document that contains all the commands which assemble to create a Docker Image. Now...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.