3

Is there a way to configure Portainer's dashboard to show Minikube's docker?

Portainer

Installed in the local docker (toolbox), on VM under windows 7; the dashboard connection to the local (inside) docker is working fine.

docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

Minikube

Installed in another VM on the same machine with a different port.

  • I've created a new Portainer Endpoint using the portainer UI
  • Set the Endpoint URL (minikubeIp:2375)
  • Selected TLS and point to the path of the cert files

c:/users/<myusername>/.minikube/certs

but keep getting an error on the dashboard tab:

Failed to load resource: the server responded with a status of 502 (Bad Gateway)

I'm getting the same error also when configuring the Endpoint without TLS.

Is it possible to configure Portainer to work with Minikube's Docker?

J. Scott Elblein
  • 4,013
  • 15
  • 58
  • 94
Yuval Simhon
  • 1,439
  • 2
  • 19
  • 34

1 Answers1

1

Are you sure that the Docker API is exposed in the Minikube configuration?

Failed to load resource: the server responded with a status of 502 (Bad Gateway)

This error is generally raised when Portainer cannot proxy requests to the Docker API.

A simple way to verify that would be to use the Docker CLI and check if Minikube's Docker API is exposed:

docker -H minikubeIp:2375 info

If this is returning a connection error, that means that the Docker API is not exposed and thus, Portainer will not be able to connect to it.

Tony
  • 1,246
  • 2
  • 16
  • 29
  • using the minikubeIp:2375 is returning connection error, but 2376 is failed with verify the certificate. so after changing it to 2376 it's working! ? **BUT** i'm getting endless loop of >"Unable to retrieve stats, Is this container running?" – Yuval Simhon Jan 24 '17 at 06:33
  • So, are you able to connect Portainer to the Minikube Docker endpoint using port 2376 and the TLS certs? – Tony Jan 24 '17 at 19:19
  • exactly, the certs are taken from the. minikube\certs – Yuval Simhon Jan 24 '17 at 19:55
  • 1
    Well it looks like this is running. If you have any troubles, you can join Portainer support on Slack or Gitter. – Tony Jan 25 '17 at 19:18