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

Cannot load docker image into kind when images are pulled by podman #2417

Closed
morningspace opened this issue Aug 15, 2021 · 2 comments
Closed
Labels
kind/feature Categorizes issue or PR as related to a new feature. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@morningspace
Copy link

What happened:
I am using podman on a RHEL system where I can use podman to pull images to the local machine. e.g.:

# podman images
REPOSITORY                                    TAG     IMAGE ID      CREATED        SIZE
docker.io/library/kong                        2.4     b022e820b9b2  3 months ago   148 MB
docker.io/kong/kong-operator                  v0.8.0  bdeba0cd3d02  3 months ago   216 MB
docker.io/kong/kubernetes-ingress-controller  1.2     a2f5ee07c4ac  4 months ago   80.6 MB
docker.io/kindest/node                        <none>  37ddbc9063d2  11 months ago  1.33 GB

However, when I run kind load docker-image to load local images to kind, it is always failed, e.g.:

# kind load docker-image library/kong --name=test
enabling experimental podman provider
ERROR: image: "library/kong" not present locally
# kind load docker-image docker.io/library/kong --name=test
enabling experimental podman provider
ERROR: image: "docker.io/library/kong" not present locally
# kind load docker-image docker.io/library/kong:latest --name=test
enabling experimental podman provider
ERROR: image: "docker.io/library/kong:latest" not present locally
# kind load docker-image library/kong:latest --name=test
enabling experimental podman provider
ERROR: image: "library/kong:latest" not present locally

What you expected to happen:
Images pulled by podman should be able to be loaded into kind

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

Anything else we need to know?:
N/A

Environment:

  • kind version: (use kind version): kind-v0.9.0
  • Kubernetes version: (use kubectl version): 1.19.1
  • Docker version: (use docker info): N/A
  • OS (e.g. from /etc/os-release): RHEL 8.4
@morningspace morningspace added the kind/bug Categorizes issue or PR as related to a bug. label Aug 15, 2021
@BenTheElder
Copy link
Member

kind load docker-image is docker specific on the image loading side by design (consider images built for kubernetes with buildx because it is required but otherwise testing podman) and predates podman. There's open issues discussing introducing an alternative command or altering this behavior.

Currently you can use podman save | kind load image-archive

@BenTheElder BenTheElder added kind/feature Categorizes issue or PR as related to a new feature. triage/duplicate Indicates an issue is a duplicate of other open issue. and removed kind/bug Categorizes issue or PR as related to a bug. labels Aug 15, 2021
@BenTheElder
Copy link
Member

#2038

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

2 participants