-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Can't Pull Image From Local Registry #3857
Comments
I don't have time to dig in right now, but my hunch is the local registry docs need to be updated now that #3828 has changed the version of containerd. |
They shouldn't need to as we are just explicitly enabling a default that should be default in containerd 2.0 But also that PR should only affect things if you run kind installed at HEAD instead of a tagged release, or explicitly use the one new image we've pushed. |
Can you try to find a minimum reproducer for your issue? There's a lot going on in this setup and some of it probably isn't related? What does What kind version? |
@BenTheElder, I'm sorry. Let me add the details. Step to reproduce:
I'm using kind version 0.26.0. And here is my docker info: docker info
Client:
Version: 27.4.0
Context: desktop-linux
Debug Mode: false
Plugins:
ai: Ask Gordon - Docker Agent (Docker Inc.)
Version: v0.5.1
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-ai
buildx: Docker Buildx (Docker Inc.)
Version: v0.19.2-desktop.1
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.31.0-desktop.2
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-compose
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.37
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-debug
desktop: Docker Desktop commands (Beta) (Docker Inc.)
Version: v0.1.0
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-desktop
dev: Docker Dev Environments (Docker Inc.)
Version: v0.1.2
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-dev
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.27
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-extension
feedback: Provide feedback, right in your terminal! (Docker Inc.)
Version: v1.0.5
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-feedback
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.4.0
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-init
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-sbom
scout: Docker Scout (Docker Inc.)
Version: v1.15.1
Path: /Users/enchant3dmango/.docker/cli-plugins/docker-scout
Server:
Containers: 5
Running: 4
Paused: 0
Stopped: 1
Images: 4
Server Version: 27.4.0
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
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
CDI spec directories:
/etc/cdi
/var/run/cdi
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 472731909fa34bd7bc9c087e4c27943f9835f111
runc version: v1.1.13-0-g58aa920
init version: de40ad0
Security Options:
seccomp
Profile: unconfined
cgroupns
Kernel Version: 6.10.14-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: aarch64
CPUs: 8
Total Memory: 7.654GiB
Name: docker-desktop
ID: a6ad3bb4-4619-42ca-857c-2dc31fdad94c
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/enchant3dmango/Library/Containers/com.docker.docker/Data/docker-cli.sock
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
127.0.0.0/8
Live Restore Enabled: false
WARNING: daemon is not using the default seccomp profile |
I meant: Can you identify the simplest setup that presents this issue in your environment? So we can ignore the non-essential options and identify the root cause more quickly. I can't repro this directly due to docker desktop's licensing changes, it is not permitted at my employer. https://www.theregister.com/2021/08/31/docker_desktop_no_longer_free/ I have docker installed on linux directly, but not docker desktop on a mac. |
That's expected to not work, we tell containerd to actually pull This is so we can present the same image name on the host and in the cluster. |
The simplest setup referring to this guide (https://kind.sigs.k8s.io/docs/user/local-registry/) is to remove the step 6 from the # 6. Create GCP service account
# Create a file named serviceaccount.json inside files/ containing your GCP service account json
sa_file_path='files/serviceaccount.json'
kubectl create ns airflow
kubectl create secret generic airflow-gcp-sa --from-file=${sa_file_path} -n airflow I'm trying to understand the last comment, I'll get back later on when I have something to say. Thanks for the insight, sir! |
![]() @BenTheElder thanks for the clue sir, even though I'm not sure if I understand it well enough. I just realized how silly I am, I forgot to push the tagged image to localhost:5001. 😅 Closing this issue now. Thanks for the help sir @BenTheElder and sir @stmcginnis. Most appreciated it! |
Glad it's working now :-) |
Hi guys, I just deployed a Kind cluster in my local (M1 Pro 2021). I followed the guide at https://kind.sigs.k8s.io/docs/user/local-registry/, but somehow, I can't pull any local image to my Kind registry (I can't connect to
localhost:5001
). Kindly help me, I'm stuck.Here is the log when I try to pull image from my local registry:
This is my provision script and my kind cluster config:
Thanks in advance, guys!
The text was updated successfully, but these errors were encountered: