-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Error Running Hello World Example #178
Comments
Hi, Sorry this isn't working for you.
|
Hi, Itamar, Thanks for responding so quickly.
Tony |
So looking in more detail the issue appears to be that it can't pull the image: {'message': 'Back-off pulling image "datawire/telepresence-k8s:0.51"', 'reason': 'ImagePullBackOff'} This image is hosted on the Docker Hub, so it ought to be accessible, it's listed in Docker Hub page. Does this work? $ oc run myservice --image=datawire/hello-world --port=8000 --expose Work in this case means "after a minute you can run |
BTW, if you want to debug this more interactively you can stop by the Gitter chat - https://gitter.im/datawire/telepresence |
Seems to be OK: 15:45 $ oc get pod Unfortunately, Gitter chat is blocked by our proxy. |
Ok, how about if you do:
Does that eventually result in a pod? I can definitely pull that image on my computer. |
That doesn't seem to work: hello-world-1-8ghcd 0/1 ImagePullBackOff 0 34m |
That is very confusing... what does |
Also, can you try directly with Docker? Will hopefully make it easier to see why image can't be pulled
|
Current pods are:
|
|
First attempt to pull your image directly:
After adding registry-1.docker.io to my insecure registries and restarting docker:
|
Thanks for your patience in debugging this. A couple of reasons this might happen (I can think of more, but let's start with these):
If you're using minishift, can you ssh in with
Or otherwise change the date. Likewise, if you're on a Mac you can restart Docker and see if that fixes issue like so: moby/moby#11534 (comment) |
I think it's almost there. Unfortunately I have another process bound to port 8000 and the proxy obviously fails when it starts up. |
OK, Itamar, I have it working now. Thanks for your help. |
Right now the port on your machine needs to match the port of the Docker image. For the example image it's hardcoded to 8000, so you can substitute a different image that listens on a different port. E.g. I think Your own images you can change the port in the image to not calsh, but... that is a problem in general, yes. The ideal would be to say someting like |
What were you trying to do?
Run the telepresence Hello World example
What did you expect to happen?
I expected it to match the documentation at http://www.telepresence.io/tutorials/openshift.html
What happened instead?
Automatically included information
Command line:
['/usr/local/bin/telepresence', '-m', 'inject-tcp', '--new-deployment', 'example', '--run', 'curl', 'http://myservice:8000/']
Version:
0.51
Python version:
3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
kubectl version:
(error: [Errno 2] No such file or directory: 'kubectl')
oc version: `oc v1.5.1+7b451fc
kubernetes v1.5.2+43a9be4
features: Basic-Auth
Server https://127.0.0.1:8443
openshift v1.5.1+7b451fc
kubernetes v1.5.2+43a9be4
OS:
Darwin MC02SY10KH03M 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64`Traceback:
Logs:
The text was updated successfully, but these errors were encountered: