Curl: (7) Failed to connect

Hi all.

I have a problem executing a docker image. I’m running minikube on Ubuntu 22.04 (a VM over Windows 10).

Inside minikube, I’ve installed docker: Docker version 24.0.5, build 24.0.5-0ubuntu1~22.04.1

When I run one of my images:
sudo docker run -d -p 8000:5000 calculator, I get the ID, however, by executing

curl http://192.168.59.100:8000/add/3/2, I get this error:

curl: (7) Failed to connect to 192.168.59.100 port 8000 after 14 ms: Connection refused

I got this IP by executing minikube ip. I’ve tried another solution from the forum where it said to execute docker-machine ip default and it still says to install docker when it is installed.

How can I execute this image? what I’m doing wrong. The link to the app deployment can be found here: Dockerize a Python Calculator Application

Isn’t minikube for Kubernetes? If you run k8s, then you probably need things like an ingress route.