Docker For Java Developer - Deploying Spring Based WAR Application to Docker

Опубликовано: 04 Ноябрь 2024
на канале: Coder Baba
697
like

Create the dockerfile. Docker file is a list of commands that we want the docker engine to execute. We will be needing a tomcat image using which we will be deploying our application. Go to dockerhub and search tomcat, we will be using official tomcat images. Here since we are using jdk 8 so we select alpine 8.

docker container run -d employee-producer
docker container run -p 8080:8080 -d employee-producer