tilt-dev / tilt-dev/ctlptl

Using with podman

Open
#146 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
722
Forks
48
Avg merge
1d 5h
Merged PRs (30d)
8

Description

I'm trying to use this with podman using the Docker API-compat socket. It seems like it'll probably work but I've hit a snag and don't know enough about the Docker ecosystem to know the "right solution" for a PR.

Running ctlptl apply with config to create a registry fails. It creates the container but then can't find it to proceed with the workflow. The problem is this line

https://github.com/tilt-dev/ctlptl/blob/f5d2f384255a1a1d435f0ffddf17d1805d7fd828/pkg/registry/registry.go#L106

If I change that to use the fully-qualified path docker.io/library/registry:2 then it works fine. I'm unsure if that would also work on native Docker though, or if instead I should add a check for podman and set the filter depending on Docker v podman. Thoughts?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect pkg/registry/registry.go around line 106 and reproduce ctlptl apply with a registry configuration through the Podman Docker API-compatible socket. Compare the image reference behavior with native Docker, then verify that the container is found and the registry workflow completes without breaking Docker usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.