Simple SpringBoot App with Docker support Build docker image docker build -t a002k/simple-spring-app:latest . Run docker image docker run --rm -p 8080:8080 a002k/simple-spring-app Run docker image as docker-compose up: docker-compose up -d down: docker-compose down