question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to use host docker like Minikube `eval $(minikube docker-env -u)`

See original GitHub issue

Is there a way to switch microk8s to use the docker host for images? I have read https://github.com/ubuntu/microk8s/issues/287 and https://github.com/ubuntu/microk8s/blob/master/docs/registry.md

and cannot see how to do this. Minikube’s eval command is simple easy way to switch I am looking for something similar.

Running ‘docker -H unix:///var/snap/microk8s/current/docker.sock ps’ does not seem to have any effect for me.

Please run microk8s.inspect and attach the generated tarball to this issue.

$ microk8s.inspect
Inspecting services
  Service snap.microk8s.daemon-docker is running
  Service snap.microk8s.daemon-apiserver is running
  Service snap.microk8s.daemon-proxy is running
  Service snap.microk8s.daemon-kubelet is running
  Service snap.microk8s.daemon-scheduler is running
  Service snap.microk8s.daemon-controller-manager is running
  Service snap.microk8s.daemon-etcd is running
  Copy service arguments to the final report tarball
Inspecting AppArmor configuration
Gathering system info
  Copy network configuration to the final report tarball
  Copy processes list to the final report tarball
  Copy snap list to the final report tarball
  Inspect kubernetes cluster

Building the report tarball
  Report tarball is at /var/snap/microk8s/412/inspection-report-20190306_230601.tar.gz

We appreciate your feedback. Thank you for using microk8s.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
melissapalmercommented, Mar 11, 2019

Thank You, @ktsakalozos I have managed to sort out using your recommendation of tagging an image and the pushing it to the registry used by MicroK8s:

The following commands are what I used, and am happy with this it allows me to only build the docker image once.

microk8s.enable registry
docker build -t org.myorg/myimage .
docker tag org.myorg/myimage localhost:32000/org.myorg/myimage
docker push localhost:32000/org.myorg/myimage
helm install --name mychart --set image.repository=localhost:32000/org.myorg/myimage  helm-chart/mychart
1reaction
waquidvpcommented, Mar 7, 2019

As https://github.com/ubuntu/microk8s/issues/287 mentioned, especially with the move to containerd now happening, your best option to stay future proof would be to build locally and use the registry. Eventually microk8s.docker won’t be available anymore to run the microk8s.docker build command.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using minikube as Docker Desktop Replacement
This guide will show you how to use minikube as a Docker Desktop replacement. Before You Begin. This only works with the docker...
Read more >
How to use local docker images with Minikube? - Stack Overflow
So to use an image without uploading it, you can follow these steps: Set the environment variables with eval $(minikube docker-env); Build the...
Read more >
Is there a way to use host docker like Minikube eval ... - GitHub
Minikube's eval command is simple easy way to switch. ... Is there a way to use host docker like Minikube eval $(minikube docker-env...
Read more >
How to Use Own Local Docker Images With Minikube - Medium
Let's find out the solution by following these below steps. First, we need to set the environment variable with eval command eval $(minikube ......
Read more >
Use local docker image on minikube. - Emmanouil Gkatziouras
In any case you can still use you local images with Minikube so let's get started. Before running any container let's issue. 1....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found