Does anyone have experience how to access IPFS from a docker container using python api (ipfsapi) ? It seems that I cannot connect to localhost, where IPFS is running from the docker container.
This is the command to connect:
api = ipfsapi.connect(ā127.0.0.1ā, 5001)
EDIT: I figured out that from mac I should use
api = ipfsapi.connect(ādocker.for.mac.host.internalā,5001)
and it works fine.
What exactly is ādocker.for.mac.host.internalā ?
How can I connect from linux machines?
donāt you just need to connect from ā0.0.0.0ā, 5001 (instead of 127.0.0.1) when running within a container. I think that should work on both Mac and Linux