Source https://spring.io/guides/gs/spring-boot-docker/
To build it from directory /src/main/docker
(uses symlink)
docker build -t test-spring-boot
To run it
docker run -p 8080:8080 -d test-spring-boot
To run it with a profile
docker run -p 8080:8080 -d -e "SPRING_PROFILES_ACTIVE=PRO" e52768fd064f
To look at the log output
docker logs <container-id>
To find the ip address it's running on (mac only)
docker-machine ls
Build docker image with maven
mvn package docker:build