Skip to content

Instantly share code, notes, and snippets.

@bentito
Last active May 7, 2024 14:54
Show Gist options
  • Save bentito/1f8ec382bd7428035a864086aaa3f3f6 to your computer and use it in GitHub Desktop.
Save bentito/1f8ec382bd7428035a864086aaa3f3f6 to your computer and use it in GitHub Desktop.
Hack podman to work with tilt

Following is for an M1 MacBook Pro (not sure how much that matters but)

Other specs (again, not sure how much they matter):

podman --version
podman version 5.0.1
tilt version
v0.33.12, built 2024-03-28

start Kind with a local registry. Just use the regular Kind with registry script

You'll need to disable secure access on local kind registry:

podman inspect kind-registry --format '{{.NetworkSettings.Ports}}' With the port you find for 127.0.0.1 edit the config file:

podman machine ssh

sudo vi /etc/containers/registries.conf.d/100-kind.conf

Should look like:

[[registry]]
location = "localhost:5001"
insecure = true

Must export DOCKER_HOST

export DOCKER_HOST=unix:///var/run/docker.sock

Start tilt with:

DOCKER_BUILDKIT=0 tilt up

I did a few other things but I hope they're not relevant:

sudo podman-mac-helper install

podman machine stop/start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment