Is there a way to use host docker like Minikube `eval $(minikube docker-env -u)`
See original GitHub issueIs 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:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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 theregistry
. Eventuallymicrok8s.docker
won’t be available anymore to run themicrok8s.docker build
command.