You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
:So far so good, but when I try to pull the image, I get the following error:
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
/cc @ktock
The text was updated successfully, but these errors were encountered: