Hello, for development purpose, I'm running k3s in...
# k3s
c
Hello, for development purpose, I'm running k3s in docker (using docker-compose). I would like to be able to use local Docker daemon images in k3s agents. I saw that the docker support is deprecated then I can't mount the docker.sock in my agent container. Is there a way to achieve that, maybe by using a Docker registry which could be able to use the docker.sock as source?
c
set up a private image registry and push images to it
the registry can also run in docker
c
Yes, I just wanted to know if it is a easy way to avoid to push to a private registry
c
no. when you build a docker image it is just saved in the local docker image store. you cannot share that image store with your k3s node.
you need to tag and push it somewhere
c
Yeah, basically we’d need to build a fake registry that accesses the local image storage and serves the image data.
But I understand that the recommended and easier way is to use a private registry, thank your for your answers
q
For running k3s locally (or any local kubernetes variant), it's often easier to use ctlptl (https://github.com/tilt-dev/ctlptl). Ctlptl sets up a cluster using your chosen provider (k3d being one provider), and optionally launches a docker registry alongside.