kubernetes-sigs / kind

Kubernetes IN Docker - local clusters for testing Kubernetes
https://kind.sigs.k8s.io/
Apache License 2.0
13.02k stars 1.51k forks source link

Unable kind load docker image into node #3578

Closed cfanbo closed 2 months ago

cfanbo commented 2 months ago

What happened:

$ kind load docker-image nginx:1.23-alpine -v=10
Image: "nginx:1.23-alpine" with ID "sha256:02ffd439b71d9ea9408e449b568f65c0bbbb94bebd8750f1d80231ab6496008e" not yet present on node "kind-worker", loading...
Image: "nginx:1.23-alpine" with ID "sha256:02ffd439b71d9ea9408e449b568f65c0bbbb94bebd8750f1d80231ab6496008e" not yet present on node "kind-control-plane", loading...
ERROR: failed to load image: command "docker exec --privileged -i kind-worker ctr --namespace=k8s.io images import --all-platforms --digests --snapshotter=overlayfs -" failed with error: exit status 1
Command Output: ctr: content digest sha256:97adfea4e60dfbc70948988dd4a74388ef03f3b77ee709ef0f3610513f26f1f9: not found
Stack Trace:
sigs.k8s.io/kind/pkg/errors.WithStack
    sigs.k8s.io/kind/pkg/errors/errors.go:59
sigs.k8s.io/kind/pkg/exec.(*LocalCmd).Run
    sigs.k8s.io/kind/pkg/exec/local.go:124
sigs.k8s.io/kind/pkg/cluster/internal/providers/docker.(*nodeCmd).Run
    sigs.k8s.io/kind/pkg/cluster/internal/providers/docker/node.go:146
sigs.k8s.io/kind/pkg/cluster/nodeutils.LoadImageArchive
    sigs.k8s.io/kind/pkg/cluster/nodeutils/util.go:86
sigs.k8s.io/kind/pkg/cmd/kind/load/docker-image.loadImage
    sigs.k8s.io/kind/pkg/cmd/kind/load/docker-image/docker-image.go:205
sigs.k8s.io/kind/pkg/cmd/kind/load/docker-image.runE.func1
    sigs.k8s.io/kind/pkg/cmd/kind/load/docker-image/docker-image.go:190
sigs.k8s.io/kind/pkg/errors.UntilErrorConcurrent.func1
    sigs.k8s.io/kind/pkg/errors/concurrent.go:30
runtime.goexit
    runtime/asm_amd64.s:1650

What you expected to happen: load image into node

Environment:

Server: Containers: 3 Running: 3 Paused: 0 Stopped: 0 Images: 6 Server Version: 26.0.0 Storage Driver: overlayfs driver-type: io.containerd.snapshotter.v1 Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 runc Default Runtime: runc Init Binary: docker-init containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc version: v1.1.12-0-g51d5e94 init version: de40ad0 Security Options: seccomp Profile: unconfined cgroupns Kernel Version: 6.6.22-linuxkit Operating System: Docker Desktop OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 3.823GiB Name: docker-desktop ID: dc0033d6-8a4e-416a-867a-3f9f816c5be0 Docker Root Dir: /var/lib/docker Debug Mode: false HTTP Proxy: http.docker.internal:3128 HTTPS Proxy: http.docker.internal:3128 No Proxy: hubproxy.docker.internal Labels: com.docker.desktop.address=unix:///Users/sxf/Library/Containers/com.docker.docker/Data/docker-cli.sock Experimental: true Insecure Registries: hubproxy.docker.internal:5555 127.0.0.0/8 Registry Mirrors: https://gfxrbz51.mirror.aliyuncs.com/ Live Restore Enabled: false

WARNING: daemon is not using the default seccomp profile

- OS (e.g. from `/etc/os-release`):

macOS Monterey 12.7.4

- Kubernetes version: (use `kubectl version`):

$ kubectl version Client Version: v1.29.3 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.27.3 WARNING: version difference between client (1.29) and server (1.27) exceeds the supported minor version skew of +/-1

aojea commented 2 months ago

darwin/amd64

related to the platform problem https://github.com/kubernetes-sigs/kind/issues/2718 ?

BenTheElder commented 2 months ago

No, they're on an amd64 host (see docker server info Architecture: x86_64 )