Hello World Spring Boot with Docker


Techs

Prerequisite

Installed: Docker, Java 1.8, Maven 3.x

Introduction

Spring Boot Hello World Application with Docker

Steps

Clone source code from git
$  git clone https://github.com/hasankadirdemircan/hello-world-spring-boot-docker.git .
Build project with Maven
$ mvn clean install
Build Docker image
$ docker image build -t hello-world-docker .
Run Docker image
$ docker container run -d -p 8080:8080 --name hello-world hello-world-docker
Test application

for test the running docker image

$ docker image ls

for test the running docker container

$ docker container ps

now test application

$ curl [IPAddress]:8080

the respone should be

Hello World with Docker

Or proxy running;

Screen

Screen