Microk8s should expose the docker agent to allow for local builds
See original GitHub issueHi all,
Microk8s should expose the docker agent to allow for local container builds using the daemon included inside the snap, I.E:
microk8s.docker build .
microk8s.docker login someregistry.catloverextreme.com
Etc.
Cheers,
- Calvin
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Microk8s should expose the docker agent to allow for local ...
Hi all, Microk8s should expose the docker agent to allow for local container builds using the daemon included inside the snap, ...
Read more >How to use the built-in registry - MicroK8s
The registry shipped with MicroK8s is hosted within the Kubernetes cluster and is exposed as a NodePort service on port 32000 of the...
Read more >Build apps locally and Deploy on MicroK8s | by Hari Manikkothu
This article explains different ways to build container locally and deploy it on a MicroK8s cluster in a development environment.
Read more >How to use the built-in registry - microk8s - Discuss Kubernetes
Having a private Docker registry can significantly improve your productivity by reducing the time spent in uploading and downloading Docker ...
Read more >Deploying Kubernetes Locally – MicroK8s - Ubuntu
Registry: Deploy a Docker private registry and expose it on localhost:32000. The storage add-on will be enabled as part of this. All of...
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
Can confirm this works for at least getting the Docker client talking to the internal daemon. Worth pointing out though that another slash is required
whereas without the additional /:
Additionally one can use
export DOCKER_HOST=unix:///var/snap/microk8s/current/docker.sock
to avoid the -H argument on each command. It might also be worth doingsudo usermod -aG docker <username>
(the socket should belong to group ‘docker’) so you don’t have to be root.In the edge and 1.11/edge channels you will now find the
microk8s.docker
command. This addition came in with the registry addon (microk8s.enable registry
) that start an insecure registry at localhost:32000. Have a look here: https://github.com/ubuntu/microk8s/blob/master/docs/registry.md