Sign inSign up

kharulp12/spring_hello_rest_api

By kharulp12

Updated over 6 years ago

It provides spring boot rest api with get http://<ip>:<port>/api/hello/name

Image
1

100K+

kharulp12/spring_hello_rest_api repository overview

  1. Pull the image using docker pull command

  2. Run the container.

>> docker run --publish 8080 --name run1 spring_hello_rest_api &
  1. Verify if container stated byb running "docker ps" command. Note the port number assigned
>> docker ps
  1. Check if rest api is up
>> 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

Tag summary

Content type

Image

Digest

Size

70 MB

Last updated

over 6 years ago

docker pull kharulp12/spring_hello_rest_api