Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ko support podman(cri-o) #771

Closed
jwcesign opened this issue Jul 20, 2022 · 4 comments
Closed

ko support podman(cri-o) #771

jwcesign opened this issue Jul 20, 2022 · 4 comments

Comments

@jwcesign
Copy link
Contributor

jwcesign commented Jul 20, 2022

Environment

k8s with cri-o container engine

what problem

If with env KO_DOCKER_REPO=ko.local, the build img only can be found with docker.
When the pod is launched, there will be a error:img pull failed

what need

ko support podman

@jwcesign
Copy link
Contributor Author

jwcesign commented Jul 20, 2022

cc @dprotaso @mattmoor @imjasonh

@imjasonh
Copy link
Member

ko uses go-containerregistry's pkg/v1/daemon.Write to load built images into the Docker daemon, which internally uses docker/client.Client.ImageLoad

Is there an equivalent for Podman? Or is there some way to configure Podman to accept images in the same way as daemon.Write?

There was some discussion in go-containerregistry about supporting Podman better, maybe that's a place to start: google/go-containerregistry#998

@jwcesign
Copy link
Contributor Author

jwcesign commented Jul 20, 2022

Let me check.
LIke what said in google/go-containerregistry#998, it needs to run podman server with root.
Now I work like follows:

sudo podman system service -t 5000 &
export DOCKER_HOST=unix:///run/podman/podman.sock
export KO_DOCKER_REPO=ko.local

@imjasonh
Copy link
Member

Thanks for figuring that out. We should probably document this somewhere more visible... 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants