Here are the steps:
- Create a springboot app with url /hello to say 'Hello Docker'
- Add a Dockerfile
- Build Docker image and tag it - 'docker build -t docker-springboot:v1 .'
- List images 'docker images'. Ensure the image shows up with the tag
- Run the images 'docker run --publish 8080:8080 docker-springboot:v1'
- Visit 'localhost:8080/hello', and it should display 'Hello Docker'
- Identify the container ID using 'docker ps'
- Stop the container using 'docker stop <imageIDFromAbove'
- Image can also be built using 'mvn spring-boot:build-image'. This creates the image and stores in local docker
- It is trying to connect to gcr.io and failing. Need to figure out whether it push to local docker image repo.