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

Error: [docker] error pulling image: invalid reference format #17

Open
felipecruz91 opened this issue Jan 9, 2022 · 2 comments
Open

Comments

@felipecruz91
Copy link

Hi,

I was trying to push and pull an image to/from my private IPFS network following the example in the README.

The push operation seems fine:

 ipdr push example/helloworld

...
(omitted lines)
...
Successfully pushed Docker image to IPFS:
/ipfs/bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq

However, when pulling using the CID I get the following error:

ipdr pull /ipfs/bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq

INFO[0000] [registry] attempting to pull docker.local:5000//ipfs/bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq
ERRO[0000] [registry] error pulling image docker.local:5000//ipfs/bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq; [docker] error pulling image: invalid reference format
Error: [docker] error pulling image: invalid reference format

From one of the nodes I can download the image using ipfs get:

/ # ipfs get /ipfs/bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq
Saving file(s) to bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq
 756.95 KiB / 756.95 KiB [======================================================================================================================================================================================================] 100.00% 0s

and the content of it seems to be fine:

/ # ls -lahR bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq/
bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq/:
total 16K
drwxr-xr-x    4 root     root        4.0K Jan  9 17:00 .
drwxr-xr-x    1 root     root        4.0K Jan  9 17:00 ..
drwxr-xr-x    2 root     root        4.0K Jan  9 17:00 blobs
drwxr-xr-x    2 root     root        4.0K Jan  9 17:00 manifests

bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq/blobs:
total 768K
drwxr-xr-x    2 root     root        4.0K Jan  9 17:00 .
drwxr-xr-x    4 root     root        4.0K Jan  9 17:00 ..
-rw-------    1 root     root         802 Jan  9 17:00 sha256:4a4a90a980383766e2fcd1c5bbd49c45e9eac992ee66994f985a3bb22698c3a2
-rw-------    1 root     root      754.7K Jan  9 17:00 sha256:5cc84ad355aaa64f46ea9c7bbcc319a9d808ab15088a27209c9e70ef86e5a2aa

bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq/manifests:
total 16K
drwxr-xr-x    2 root     root        4.0K Jan  9 17:00 .
drwxr-xr-x    4 root     root        4.0K Jan  9 17:00 ..
-rw-------    1 root     root         426 Jan  9 17:00 latest
-rw-------    1 root     root         426 Jan  9 17:00 sha256:e2be89f3eb8e587f3fa93dedb1f1b51d7ad5ca85c3a2657a98d97bb983ae57d9

So, why ipdr fails to pull the image?

@superice119
Copy link

as I test, it should use ipdr pull bafybeidfrvtj7y77vmncf7tizctiefx45poac2fzxzlfbk663rjbd65qyq. ipdr pull [CID], not use ipfs path

akakream added a commit to akakream/ipdr that referenced this issue Jan 21, 2023
@imranshifa
Copy link

imranshifa commented Oct 5, 2023

I am also facing same issue ,

ipdr pull bafybeie55542oqumm7yghfya5tcf36llx6kvm2ej5tdwudlslrqot6rrui
INFO[0000] [registry] attempting to pull docker.local:5000/bafybeie55542oqumm7yghfya5tcf36llx6kvm2ej5tdwudlslrqot6rrui 
ERRO[0000] [registry] error pulling image docker.local:5000/bafybeie55542oqumm7yghfya5tcf36llx6kvm2ej5tdwudlslrqot6rrui; [docker] error pulling image: Error response from daemon: Get "http://docker.local:5000/v2/": dial tcp 127.0.0.1:5000: connect: connection refused 
Error: [docker] error pulling image: Error response from daemon: Get "http://docker.local:5000/v2/": dial tcp 127.0.0.1:5000: connect: connection refused

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

3 participants