Docker-spring-boot-gradle Skeleton
./gradlew build --refresh-dependencies -x test
gradle build -x test
gradle buildDocker -x test
docker images
(7c45ceab4331 is the image id) docker run -it 7c45ceab4331 /bin/bash
(7c45ceab4331 is the image id) docker run -it 7c45ceab433
docker ps
(61a4b41e4c2e is the id of container not image) docker inspect --format '{{ .NetworkSettings.IPAddress }}' 61a4b41e4c2e
docker rmi 7c45ceab4331
(37f264a0f40f is the container id) docker cp /home/rakhu/Desktop/sample.war 37f264a0f40f:/usr/local/tomcat/webapps