Tutorial of how to consume a restful web service with Spring Framework
Build the jar:
mvn clean package
Build the image:
docker build -t learning-spring-consuming-rest .
Parameters:
- -t, --tag value: Name and optionally a tag in the 'name:tag' format (default [])
And run the container:
docker run --rm learning-spring-consuming-rest
Parameters:
- --rm: Automatically remove the container when it exits