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

Add --ipfs-address to nerdctl pull #1781

Closed
felipecruz91 opened this issue Dec 29, 2022 · 0 comments · Fixed by #1801
Closed

Add --ipfs-address to nerdctl pull #1781

felipecruz91 opened this issue Dec 29, 2022 · 0 comments · Fixed by #1801

Comments

@felipecruz91
Copy link

What is the problem you're trying to solve

Hi,

I'm experimenting with pushing OCI images to IPFS, so bear in mind that the following set-up is likely not ideal.

The IPFS daemon is running in a container in Docker Desktop instead of directly on the host. It is reachable from the host at localhost:5001.

Because I'm using MacOS, I had to run a Lima VM so I can use nerdctl in it. From the Lima VM, I can push an image to the IPFS daemon by specifying --ipfs-address:

lima nerdctl push --ipfs-address /ip4/192.168.5.2/tcp/5001 ipfs://postgres
INFO[0000] pushing image "postgres" to IPFS
INFO[0000] ensuring image contents
bafkreigolp7bq76elja3ircgz2xs2m5gbz5aznhruvvgzw4akkfdy7x77q

So far so good, but when I try to pull the image, I get the following error:

lima nerdctl pull ipfs://bafkreigolp7bq76elja3ircgz2xs2m5gbz5aznhruvvgzw4akkfdy7x77q
FATA[0000] ipfs api address could not be found

I understand that the reason why nerdctl pull ipfs:// fails is because it requires the IPFS daemon to be running on the host. However, as I mentioned, the IPFS daemon is running in a container in Docker Desktop.

Describe the solution you'd like

I'd like nerdctl pull to support --ipfs-address so I can specify the IPFS address where the daemon is running:

lima nerdctl pull --ipfs-address /ip4/192.168.5.2/tcp/5001 ipfs://postgres

Additional context

limactl --version
limactl version 0.12.0

/cc @ktock

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

Successfully merging a pull request may close this issue.

2 participants