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

can't download the docker image #6

Open
danielxiaozhu opened this issue Jun 17, 2017 · 2 comments
Open

can't download the docker image #6

danielxiaozhu opened this issue Jun 17, 2017 · 2 comments

Comments

@danielxiaozhu
Copy link

I set the aliyun register-mirrors when ran the shell. And I can download docker.io/busybox image by "docker create docker.io/busybox". But when I executed "kubectl --kubeconfig /etc/kubernetes/admin.conf create -f test.yaml", Nothing happened. no image was downloaded.
test.yaml like below:
apiVersion: v1
kind: Pod
metadata:
name: test
spec:
containers:
- name: test-container
image: docker.io/busybox
command: [ "/bin/sh", "-c", "env" ]

@danielxiaozhu
Copy link
Author

"kubectl get pods" output is below. alway Pending.
NAME READY STATUS RESTARTS AGE
test 0/1 Pending 0 14m

@adieu
Copy link
Contributor

adieu commented Jun 20, 2017

@danielxiaozhu Can you remove the docker.io/ part from the image name and rerun the test for me?

Actually I think there should be no problem to pull the image because you can pull the image use docker. I'm just guessing we've bypassed the --registry-mirror config if we use docker.io/busybox instead of busybox alone.

Another possible explanation is that some ips for the cdn docker registry use are not blocked. If you didn't use --registry-mirror, you can not reliably pull the image but sometimes it will work. Try delete the image the pull the image for multiple times to validate this idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants