I2P: End-to-End encrypted and anonymous Internet https://i2pd.website/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
yangfl 46f62e1af9 remove trailing whitespaces 7 years ago
..
old-ubuntu-based remove trailing whitespaces 7 years ago
README.md fix typo 7 years ago

README.md

Howto build & run

Build

Assuming you're in the root directory of the anoncoin source code.

$ cd build/docker $ docker -t meeh/i2pd:latest .

Run

To run either the local build, or if not found - fetched prebuild from hub.docker.io, run the following command.

$ docker run --name anonnode -v /path/to/i2pd/datadir/on/host:/var/lib/i2pd -p 7070:7070 -p 4444:4444 -p 4447:4447 -p 7656:7656 -p 2827:2827 -p 7654:7654 -p 7650:7650 -d meeh/i2pd

All the ports ( -p HOSTPORT:DOCKERPORT ) is optional. However the command above enable all features (Webconsole, HTTP Proxy, BOB, SAM, i2cp, etc)

The volume ( -v HOSTDIR:DOCKERDIR ) is also optional, but if you don't use it, your config, routerid and private keys will die along with the container.

Options

Options are set via docker environment variables. This can be set at run with -e parameters.

  • ENABLE_IPV6 - Enable IPv6 support. Any value can be used - it triggers as long as it's not empty.
  • LOGLEVEL - Set the loglevel.
  • ENABLE_AUTH - Enable auth for the webconsole. Username and password needs to be set manually in i2pd.conf cause security reasons.

Logging

Logging happens to STDOUT as the best practise with docker containers, since infrastructure systems like kubernetes with ELK integration can automatically forward the log to say, kibana or greylog without manual setup. :)