A better ZeroNet Docker image based on alpine and with integrated CLI + Tor + UI password
2.8K
Decentralized websites using Bitcoin crypto and the BitTorrent network - https://zeronet.io
$ docker build -t my/zeronet .
$ docker run -d \
--name zeronet \
-e "ENABLE_TOR=true" \
-e "UIPASSWORD=yourpassword" \
-v /var/lib/zeronet:/data \
-p 127.0.0.1:43110:43110 \
-p 127.0.0.1:15441:15441 \
my/zeronet
Access via http://127.0.0.1:43110
Data can be backed up via:
$ docker run --rm \
-v /var/lib/zeronet:/data:ro \
-v $(pwd):/backup alpine tar cvf /backup/zeronetdata.tar /data
...or
$ tar cvf zeronetdata.tar /var/lib/zeronet
$ docker run -rm -v /var/lib/zeronet:/data my/zeronet create
...
- Generating new privatekey...
- ----------------------------------------------------------------------
- Site private key: 5KH7HEDj4p1cMKb32sVvENXJZqSweZ2JuPhRf3W5Gpdsu2jH51A
- !!! ^ Save it now, required to modify the site ^ !!!
- Site address: 1Nj1VBtjM31AYoV2Wy8CwQNGxsasvdEV6Q
- ----------------------------------------------------------------------
? Have you secured your private key? (yes, no) >
...
$ docker run -rm -v /var/lib/zeronet:/data my/zeronet sign 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
...
$ docker run -rm -v /var/lib/zeronet:/data my/zeronet publish 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
zeronet.py you will be able to visit zeronet sites using
http://127.0.0.1:43110/{zeronet_address} (eg.
http://127.0.0.1:43110/1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D).content.json file which holds all other files in a sha512 hash
and a signature generated using the site's private key.content.json and publishes it to the peers.
Afterwards, the peers verify the content.json integrity (using the
signature), they download the modified files and publish the new content to
other peers.docker run -d -v <local_data_folder>:/root/data -p 15441:15441 -p 127.0.0.1:43110:43110 nofish/zeronetENABLE_TOR environment variable to true (Default: false). E.g.:docker run -d -e "ENABLE_TOR=true" -v <local_data_folder>:/root/data -p 15441:15441 -p 127.0.0.1:43110:43110 nofish/zeronet
Shut down zeronet if you are running it already
$ zeronet.py siteCreate
...
- Site private key: 23DKQpzxhbVBrAtvLEc2uvk7DZweh4qL3fn3jpM3LgHDczMK2TtYUq
- Site address: 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
...
- Site created!
$ zeronet.py
...
Congratulations, you're finished! Now anyone can access your site using
http://localhost:43110/13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
Next steps: ZeroNet Developer Documentation
$ zeronet.py siteSign 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
- Signing site: 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2...
Private key (input hidden):
$ zeronet.py sitePublish 13DNDkMUExRf9Xa9ogwPKqp7zyHFEqbhC2
...
Site:13DNDk..bhC2 Publishing to 3/10 peers...
Site:13DNDk..bhC2 Successfuly published to 3 peers
- Serving files....
Content type
Image
Digest
Size
19.5 MB
Last updated
about 9 years ago
docker pull rigelk/zeronet