1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/kubo/README.md
2022-09-09 11:52:02 +08:00

574 B

kubo

Kubo (go-ipfs) the earliest and most widely used implementation of IPFS.

$ mkdir -p data/{export,ipfs}
$ chown -R 1000:100 data
$ docker-compose up -d
$ curl http://127.0.0.1:5001/webui/
$ docker-compose exec kubo sh
>>> cd /export
>>> echo "hello world" > hello.txt
>>> ipfs add hello.txt
added QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o hello.txt
 12 B / 12 B [=======================================] 100.00%
>>> ipfs cat QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o
hello world
>>> exit