./gradlew clean bootJar
Run chmod command when you get "./gradlew permission denied" error.
chmod +x gradlew
docker build -t my-spring-boot-app .
To see the docker image you have built
docker images
docker run -d -p 8080:8080 --name spring-boot-container my-spring-boot-app
To see the docker container you have run
docker ps
docker logs -f spring-boot-container