docker build -t my_image .
docker run -d --name my_container -p 5001:5001 my_image
curl localhost:5001
curl -X POST -H 'Accept: application/json' -H 'Accept-Encoding: gzip, deflate' -H 'Connection: keep-alive' -H 'Content-Length: 19' -H 'Content-type: application/json' -H 'User-Agent: python-requests/2.26.0' -d '{"name" :"Chandra"}' http://127.0.0.1:5001/call
Source: