docker Test a Connection using Curl

Code Example - docker Test a Connection using Curl

                
                        $ curl --request POST \
  --url http://localhost:8000/test \
  --header 'content-type: application/json' \
  --data '{
	"msg": "testing"
}'
curl: (7) Failed to connect to localhost port 8000: Connection refused