How to Create a Docker Image for a Java application

preview_player
Показать описание
Learn how to create a docker image for your Java application. Knowing how to dockerize your application has become an essential skill these days.

I will show you how to take a Java Spring Boot application and create a docker image from a custom Dockerfile through the docker build process.

Table Of Contents
00:00 Introduction
00:39 Creating Docker file for Java application
01:15 What is a Docker Image?
01:40 How to pick a base docker image for your Spring boot application - Step 1
05:00 copying your Java application into docker image - Step 2
06:10 Providing Java application configuration in docker container - Step 3
07:33 Deploying Spring Boot application in docker - Step 4
08:35 Building your docker image for java application - Step 5
10:26 Run Spring boot jar application in docker container

In order to run a Java application in a Docker container we have to go through the process known as containerizing or dockerizing the application. We covered the following 6 steps to make that happen.

1. Select your docker base image
2. COPY your Java application into image
3. Provide any configuration your java application needs
4. Launch your Java application in the docker container
5. Build your Java application Docker Image
6. Run your Docker container with containerized spring boot java application

Read the Blog Post "How to Create Docker Image for Java Application"
======================================================

Subscribe to MVP Java ...

Follow me ...
Рекомендации по теме
Комментарии
Автор

Thanks Great content with explannation

isurucumaranathunga
Автор

I am unable to build java image while doing so it's giving me an error
failed to solve: failed to read dockerfile: open no such file or directory
kindly help on this

damn_dude