Skip to content

fmedv/docker-go-ipfs

Repository files navigation

Docker-IPFS

Simple Go-IPFS setup inside Docker container


About IPFS

Documentation

GitHub Repository

Setup pre-configuration

  1. Run wsl --user root in PowerShell/CMD if system runs on WSL.
  2. Run sysctl -w net.core.rmem_max=2500000 to fix buffer size issue

Setup

  1. Run git clone https://github.com/fmedv/docker-go-ipfs.git.
  2. Rename .env-example to .env.
  3. Run docker-compose pull.
  4. Run docker-compose up -d.
  5. Open browser and go to URL ${APP_HOST}:${IPFS_API_PORT}/webui

Important CLI commands

  • 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.

About

Simple Go-IPFS setup inside Docker container

Resources

License

Stars

Watchers

Forks

Packages

No packages published