Run and Test the Container Locally
Build, run, and hit the endpoint from your machine.
Run It Locally First
Before shipping, run the container on your own machine. Catching bugs locally is far cheaper than debugging them in the cloud.
Start the Container
Launch the image with docker run. Without port mapping it runs, but nothing on your host can reach the API inside.
docker run model-apiAll lessons in this course
- Write a Dockerfile for a Model API
- Slim Images with Multi-Stage Builds
- Pass Config via Environment Variables
- Run and Test the Container Locally