-
Notifications
You must be signed in to change notification settings - Fork 26
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
podman compat in development mode #477
Conversation
Podman does not accept docker image tags in the format image:tag as local, it requires `localhost/` when the image was built locally. This small change saves me time because a `mkchain` default yaml works on my machine again. I believe this will not break the development workflow for docker users, please confirm.
By any chance have you seen this thread? It looks like there are some workarounds for building images that work both with Pman and docker. See a the following bunch of comments. It seems that podman is not a drop in replacement for docker. containers/buildah#1034 (comment) |
From the link you posted:
I could indeed tag |
│ Events: │
│ Type Reason Age From Message │
│ ---- ------ ---- ---- ------- │
│ Normal Scheduled 25s default-scheduler Successfully assigned ithacanet/activate-job-42nfz to minik │
│ ube │
│ Normal BackOff 21s (x2 over 22s) kubelet Back-off pulling image "localhost/tezos-k8s-utils:dev" │
│ Warning Failed 21s (x2 over 22s) kubelet Error: ImagePullBackOff │
│ Normal Pulling 8s (x2 over 23s) kubelet Pulling image "localhost/tezos-k8s-utils:dev" │
│ Warning Failed 8s (x2 over 23s) kubelet Failed to pull image "localhost/tezos-k8s-utils:dev": rpc e │
│ rror: code = Unknown desc = Error response from daemon: Get "http://localhost/v2/": dial tcp 127.0.0.1:80: connect: con │
│ nection refused │
│ Warning Failed 8s (x2 over 23s) kubelet Error: ErrImagePull │
│ |
Do you have the container locally on your minikube with the correct tag? |
Some of the comments in that thread seem to indicate that you can modify some podman config that can tell it where to look for images. containers/buildah#1034 (comment) |
Tag or image name? My images look like this:
|
image name.
Yes, so as part of this PR, you are expected to always tag your images The aliasing link you provided does not work for localhost. |
I'm probably failing to fully understand your difficulty and solution so thinking out loud here. I would assume most users run docker. How would this effect remote chart users? The default images in the chart will now have localhost prepended. That is what will be looked up from dockerhub. The ci deploys images as Due to my assumption of most users running docker, why not check for podman existence? Or how about adding a new flag to mkchain? I don't see why this is so bad |
Remote chart users use released charts with images as The default image in the cloned chart now has localhost prepended.
It's already the case? When you clone the repo, according to DEVELOPMENT.md you are presumed to use devspace (although that's not necessary, you can just go and build the images by hand). I just changed the devspace config to add localhost to the images it generates. How are you building images locally? Are you using devspace?
But why not merge this instead? It requires you to build the image with name |
The reason i disagree with this PR is bec it seems to me like it is trying to solve a problem for a minority of users who are using podman. This is based on my assumption that most people will be using docker and won't understand why localhost should be included in the image name. I'm not using devspace at the current time. If devspace is used you can use a profile to specify podman vs docker. Otherwise just build manually with prepended localhost. And mkchain can check for the existence of podman or any other container client without needing a flag automatically. If you insist on implementing this way i will accept :) |
Thanks for considering. I'll continue editing my charts by hand for now. I think the world is not ready to move away from docker 😉 so people will indeed be confused by this |
you can always update mkchain code if you want :) |
Podman does not accept docker image tags in the format image:tag as
local, it requires
localhost/
when the image was built locally.This small change saves me time because a
mkchain
default yaml workson my machine again.
I believe this will not break the development workflow for docker users,
please confirm.