Simple Go-IPFS setup inside Docker container
- Run
wsl --user rootin PowerShell/CMD if system runs on WSL. - Run
sysctl -w net.core.rmem_max=2500000to fix buffer size issue
- Run
git clone https://github.com/fmedv/docker-go-ipfs.git. - Rename
.env-exampleto.env. - Run
docker-compose pull. - Run
docker-compose up -d. - Open browser and go to URL
${APP_HOST}:${IPFS_API_PORT}/webui
- Run
ipfs add ${IPFS_FILE_PATH}/FILE_NAMEto add an object and get unique content identifier (CID). - Run
ipfs pin add CIDto ensure that object is stored indefinitely and not just cashed. - Run
ipfs pin rm CIDto unpin an object. - Run
ipfs cat CIDto print the content of the corresponding object.