aylei / kubectl-debug

This repository is no longer maintained, please checkout https://github.com/JamesTGrant/kubectl-debug.
Apache License 2.0
2.31k stars 303 forks source link

how to avoid images always pulling? #113

Open hillbun opened 4 years ago

hillbun commented 4 years ago

My server has no internet connections I have load required images locally but when run kubectl-debug, it still pulling images.

kchenzhi commented 4 years ago

I was create a PR to solve this problem.

111

todaygood commented 4 years ago

has been resolved ? It seems that #111 didn't solve Container Image to run the debug container, default to nicolaka/netshoot:latest.

[root@node1 ~]# kubectl debug virt-launcher-centos78qcow-cgwml pod virt-launcher-centos78qcow-cgwml PodIP 10.233.90.180, agentPodIP 192.168.122.1 wait for forward port to debug agent ready... Forwarding from 127.0.0.1:10027 -> 10027 pulling image nicolaka/netshoot:latest... end port-forward... error execute remote, Internal error occurred: error attaching to container: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) error: Internal error occurred: error attaching to container: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)