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?