Unable to access service url on minikube installed with docker on ubuntu

I have installed minikube on my ubuntu using docker. I could create the pod and service using nginx image on minikube. However I could not access the service url generated by ‘minikube service --url’ on my local host.

Am i missing something to access url generated using minikube installed using docker on ubuntu laptop?

Any help much appreciated.

:smile: minikube v1.28.0 on Ubuntu 20.04
:sparkles: Automatically selected the docker driver. Other choices: none, ssh
:pushpin: Using Docker driver with root privileges
:+1: Starting control plane node minikube in cluster minikube
:tractor: Pulling base image …

–minikube status

type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured

type: Worker
host: Running
kubelet: Running

type: Worker
host: Running
kubelet: Running

Hello @learn.prabhachandra,

Locally, you can try some options as below:

  1. Expose your pod using port-forward feature
kubectl port-forward pod/nginx 8080:80
Forwarding from -> 80

You can then access it from your host browser

  1. You can access to the minikube cluster using minikube ssh and curl service IP from there.
nginx-service NodePort <none> 80:30224/TCP 103s

[email protected] ~ % minikube ssh

Last login: Sat Nov 12 03:24:34 2022 from

[email protected]:~$ curl

<!DOCTYPE html>



<title>Welcome to nginx!</title>


html { color-scheme: light dark; }

body { width: 35em; margin: 0 auto;

font-family: Tahoma, Verdana, Arial, sans-serif; }




<h1>Welcome to nginx!</h1>

<p>If you see this page, the nginx web server is successfully installed and

working. Further configuration is required.</p>

<p>For online documentation and support please refer to

<a href="http://nginx.org/">nginx.org</a>.<br/>

Commercial support is available at

<a href="http://nginx.com/">nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>




1 Like

Thanks Trung! I got the solution using 'kubectl port-forward.

I was having problem with minikube ssh. I have minikube with multiple nodes. However it got resolved when i ssh to specific node and curl from there.

Nice, thanks for getting back on that @learn.prabhachandra.