Simple Go-IPFS setup inside Docker container
- Run
wsl --user root
in PowerShell/CMD if system runs on WSL. - Run
sysctl -w net.core.rmem_max=2500000
to fix buffer size issue
- Run
git clone https://github.com/fmedv/docker-go-ipfs.git
. - Rename
.env-example
to.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_NAME
to add an object and get unique content identifier (CID). - Run
ipfs pin add CID
to ensure that object is stored indefinitely and not just cashed. - Run
ipfs pin rm CID
to unpin an object. - Run
ipfs cat CID
to print the content of the corresponding object.