What is Data Persistence and How can we use it via Docker ?
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 of 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 fourth task. To go through the third task, click here. Ensure data persistence in Containers via Docker 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. We ran a database version of this application and ran both the container simultaneously via docker-compose. Now in this task, we will...
Read More