I tried search but I may not be using the right te...
# python
I tried search but I may not be using the right terms. I have docker desktop installed, with pre-built images. Is it possible to push docker images to kubernetes, using docker desktop's cache? the docker.Image object wants a Dockerfile to build from but I'm trying to avoid making things complicated by keeping Dockerfiles in sync.
While this is not pulumi related, you do not push docker images to kubernetes. Kubernetes
the image from the registry. What you should search is
docker desktop kubernetes pull from local registry
, then read this article should give you enough info https://www.docker.com/blog/how-kubernetes-works-under-the-hood-with-docker-desktop/
for me understanding the following concepts helped a lot: • image: i.e. the filesystem • container: a running instance of an image • pod: one or more containers bundled together (usually one, but sometimes there are small ones bundled next to it for logging, git sync, etc.)
The point still stands. Can I have pulumi recognise that I have the images and don't wish to push them to the registry?
I'm using pulumi locally for learning, and keeping the Dockerfiles in sync between my pet project and where I'm working on Pulumi is an extra task
Not sure I understand the setup. So you're trying to deploy containers to k8s with pulumi, and you want to use docker desktop's cache repo as a source of the images?
The python documentation doesn't say if it can or can't handle that.
Well based on this you will need to set up a local registry: https://forums.docker.com/t/docker-desktop-local-registry-url/122956 not sure how you can expose the images inside docker desktop
Gotcha, thanks.