Try to check the exact API path you are calling. For example:
- Cloud OCR:
https://<your-cognitive-service-endpoint>/vision/v3.2/read/analyze
- Container OCR might require something like
/vision/v3.2/read/analyze
- Verify the path
/vision/v3.2/read/analyze
or the equivalent for the version of the container you're using is appended tohttp://localhost:5000
http://localhost:5000/vision/v3.2/read/analyze
You can use the Docker logs to see what is happening within the container when the request is made.
docker logs <container-id>