Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package.

Today we will cover bellow things

  1. The importance of docker
  2. Overview on docker
  3. Dockerizing spring app with detailed explanations
  4. Docker various operations eg: Image creation and deletion, container creation and deletion and so more
  5. Monitor Docker images using command line and docker desktop apps
  6. Advance part: Automotion of docker task eg: docker build, run and push to docker hub from Gradle command

**Prerequisites: **Before starting this article you must have knowledge of spring boot with Gradle dependencies. You can learn this from the below link

  1. The importance of docker
  • is a tool designed to make it easier to create, deploy, and run applications by using containers.
  • Containers are great for continuous integration and continuous delivery (CI/CD) workflows.
  • Docker’s portability and lightweight nature also make it easy to dynamically manage workloads, scaling up or tearing down applications and services as business needs dictate, in near real-time.
  • Docker is lightweight and fast. It provides a viable, cost-effective alternative to hypervisor-based virtual machines, so you can use more of your compute capacity to achieve your business goals.
  • Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package. So the developer can rest assured that the application will run on any other Linux machine regardless of any customized settings that the machine might have that could differ from the machine used for writing and testing the code.
  • Docker is a bit like a virtual machine. But unlike a virtual machine, rather than creating a whole virtual operating system, Docker allows applications to use the same Linux kernel as the system that they’re running on and only requires applications to be shipped with things not already running on the host computer. This gives a significant performance boost and reduces the size of the application.
  • importantly, Docker is open source. This means that anyone can contribute to Docker and extend it to meet their own needs if they need additional features that aren’t available out of the box.

#docker-image #docker #dockerfiles #spring-boot #gradle

Dockerizing spring app with Gradle
1.25 GEEK