share images in development
# 🌱|help-and-getting-started
c
Is it best practice to share build images between developers that everyone in the their dev environment is using the same registry with the same namespace?
q
@colossal-salesclerk-87522 yes because Garden caches image layers under the version tag of each image. As an example, my
openai-service-image
has a
_buildcache
tag, which
cluster-buildkit
uses to store cached layers. If your team all works against the same image they get the benefits of previous builds. See https://docs.garden.io/reference/providers/kubernetes#providers-.clusterbuildkit.cache for more. https://cdn.discordapp.com/attachments/1192514073779241030/1192787325168664719/image.png?ex=65aa58c3&is=6597e3c3&hm=dd84fb4f65bdf89e1eddf18a8a4bd8bf5d53d32f77db1372f4610282ffea2818&
You'll want to set up
cluster-buildkit
or
kaniko
as your in-cluster image builders to take advantage of shared caching. https://docs.garden.io/kubernetes-plugins/guides/in-cluster-building
c
i have this set up i will try this will also save some resources
we just use differnt cache names for each developer and buildkit is regulary running out of resources