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

Unable to load image using Podman #2027

Closed
bostrt opened this issue Jan 22, 2021 · 8 comments
Closed

Unable to load image using Podman #2027

bostrt opened this issue Jan 22, 2021 · 8 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@bostrt
Copy link

bostrt commented Jan 22, 2021

What happened: Unable to load image using Podman provider:

[root@localhost kind]# podman images
REPOSITORY                         TAG      IMAGE ID      CREATED       SIZE
localhost/ovn-daemonset-f          dev      abb63014304d  15 hours ago  634 MB
[root@localhost kind]# kind load docker-image ovn-daemonset-f:dev --name ovn 
enabling experimental podman provider
ERROR: image: "ovn-daemonset-f:dev" not present locally
[root@localhost kind]# kind load docker-image localhost/ovn-daemonset-f:dev --name ovn 
enabling experimental podman provider
ERROR: image: "localhost/ovn-daemonset-f:dev" not present locally

What you expected to happen: Be able to load image without any workaround (mentioned below).

How to reproduce it (as minimally and precisely as possible):

  1. Fresh install Fedora 33
  2. Install podman (no docker)
  3. clone and build kind
  4. build an image using podman build
  5. check the image exists podman images
  6. try loading image via kind

Anything else we need to know?:
Yes, If I create a symlink like below, I'm able to load image:

[root@localhost kind]# ln -s /usr/bin/podman /usr/local/bin/docker

[root@localhost contrib]# kind load docker-image ovn-daemonset-f:dev --name ovn -v 10
enabling experimental podman provider
Image: "ovn-daemonset-f:dev" with ID "abb63014304dfae15ab5c7282b409f8a1b677bf14c6601a04e229ac489f71b29" not yet present on node "ovn-worker", loading...
...

Environment:

  • kind version:
[root@localhost kind]# git rev-parse --short HEAD
db37e6cf
[root@localhost kind]# git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
[root@localhost kind]# kind --version
kind version 0.10.0-alpha+db37e6cfe88729
  • Podman version:
[root@localhost tcpdump-docker]# podman version
Version:      2.2.1
API Version:  2.1.0
Go Version:   go1.15.5
Built:        Tue Dec  8 07:37:50 2020
OS/Arch:      linux/amd64
  • OS:
[root@localhost kind]# cat /etc/redhat-release 
Fedora release 33 (Thirty Three)
@bostrt bostrt added the kind/bug Categorizes issue or PR as related to a bug. label Jan 22, 2021
@BenTheElder
Copy link
Member

BenTheElder commented Jan 22, 2021

The docker command is docker specific and supposed to be replaced with a generic command but it's unimplemented. The docker-image command will always read from docker and changing that would be breaking behavior for those with both installed.

You can use kind load image-archive and podman save until the new command is implemented.

The podman driver is still considered experimental and unstable, we're still constantly patching over podman incompatibility.

EDIT: the provider is a node provider only, it provides nothing else and shouldn't. In the future we will be able to cross load from both.

@bostrt
Copy link
Author

bostrt commented Jan 22, 2021

Many thanks! I'll give the manual podman step a try and fallback to using docker otherwise.

I'm happy to close this since podman driver is still quite new if you wish.

@BenTheElder
Copy link
Member

I think we don't actually have a tracking issue for the command, but let me file a new one for that and link back here and tag it for v0.11.0 (v0.10.0 cutting is in progress today). We have some existing discussion in a PR but it didn't wind up making it back into the issue tracker I think.

@BenTheElder
Copy link
Member

I filed #2038 to outline what I think we should do next regarding this, let's track there for now.

I'd like to see something ship in the next release, the podman support seems to be stabilizing, but this is a missing spot still.

With #2038 I think we can solve this in a way that works well for scripts that are using docker or podman interchangeably (though ironically in kind itself we need special codepaths because some of the more advanced usage is just not interchangable).

@BenTheElder BenTheElder self-assigned this Feb 2, 2021
maiqueb added a commit to maiqueb/whereabouts that referenced this issue Oct 6, 2021
As per [0] kind `load docker-image` commands are docker specific.
This commit changes that instruction, using the generic
`load image-archive` instead, which works both for podman and docker.

[0] - kubernetes-sigs/kind#2027

Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
maiqueb added a commit to maiqueb/whereabouts that referenced this issue Oct 6, 2021
As per [0] kind `load docker-image` commands are docker specific.
This commit changes that instruction, using the generic
`load image-archive` instead, which works both for podman and docker.

[0] - kubernetes-sigs/kind#2027

Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
maiqueb added a commit to maiqueb/whereabouts that referenced this issue Oct 6, 2021
As per [0] kind `load docker-image` commands are docker specific.
This commit changes that instruction, using the generic
`load image-archive` instead, which works both for podman and docker.

[0] - kubernetes-sigs/kind#2027

Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
@carrulop
Copy link

carrulop commented Sep 4, 2024

Hello. I have the same issue with podman desktop 5.2.2 (in Windows 11) and latest version kindle: when I create local image with podman build -t nameImage . , and then I do kubectl apply -f app.yaml, it does not find the image.

I checked the image exists in podman, but in app.yaml, where I defined the pod, I put the images name, but there is ErrImagePull error and the pod is not created successfully.

Can anyone help me? Thanks!

@stmcginnis
Copy link
Contributor

It would be best to file a new issue rather than commenting on an old, closed one.

But you don't mention loading your image, only building it and then applying a manifest. If you just omitted that step from your description and are still having problems then please open a new issue and include all the details from the issue template and any additional logging output from the image load command.

@carrulop
Copy link

carrulop commented Sep 4, 2024

Thank you, stmcginnis. I have created a new issue here: #3732

Thanks!

@BenTheElder
Copy link
Member

See also #2760 and related issues about designing a new kind load subcommand

I recommend using a local registry anyhow, there is a guide in our docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants