It provides spring boot rest api with get http://<ip>:<port>/api/hello/name
100K+
Pull the image using docker pull command
Run the container.
>> docker run --publish 8080 --name run1 spring_hello_rest_api &
>> docker ps
>> curl --get http://localhost:<port>/api/hello/Aakash
Note : If you are running in docker toolbox then it runs under VM and it has its own dedicated IP. localhost won't work in that case. To find IP of docker VM run
>> docker-machine ip
>> curl --get http://<ip from above command>:<port>/api/hello/Aakash
Content type
Image
Digest
Size
70 MB
Last updated
over 6 years ago
docker pull kharulp12/spring_hello_rest_api