Skip to content

Running the application via docker container

Anantha Raju C edited this page Sep 28, 2020 · 1 revision

DockerHub Pull Command

docker pull anantha/spring-boot-application-template

Ensure you build a jar of the application before building a docker image.

`mvn package -Dmaven.test.skip=true`    //skip all tests and build
`mvn clean package`                     //run all tests and build
Command Description
docker images take a look at the container images.
docker ps list all the running containers.
docker ps -a list all the containers, including the ones that have finished executing.
docker build -t spring-boot-application-template . Build docker image of the project
docker run spring-boot-application-template run the project's docker container
docker stop [container_id] stop a container
docker rm $(docker ps -aq) stop and remove all containers
Clone this wiki locally