Netsody

Blog

Run drasyl CLI through Docker

Dr. Heiko Bornholdt Dr. Heiko Bornholdt Senior Research Assistant Profile GitHub LinkedIn 1 min read
Archive This post documents earlier research or engineering work.

Its names, scope, and implementation details reflect the context at publication and may differ from the current Netsody platform.

Run drasyl CLI through Docker
Archive notice: This post preserves its original account of a research project, software artifact, or engineering milestone. It does not by itself describe the origin or scope of the current Netsody platform.

The drasyl CLI can now be used within a Docker Container. To do so, we’ve uploaded the current release on Docker Hub.

Mini How To

Get help:

$ docker run -i -t drasyl/drasyl version
Usage:
  drasyl [flags]
  drasyl [command]

Available Commands:
genidentity    Generate and output new Identity.
version        Show the version number.
help           Show help for drasyl commands and flags.
node           Run a drasyl node.

Flags:
-h,--help      Show this help.

Use "drasyl [command] --help" for more information about a command.

Run a node:

# 1. generate an identity (this can take some time)
$ docker run -i -t drasyl/drasyl genidentity | grep -v "WARNING:" > drasyl.identity

# 2. start the node
$ docker run -i -t -p 22527:22527 \
    -v $PWD/drasyl.identity:/drasyl.identity \
    drasyl/drasyl node

This command passes the generated identity to the docker container and launches the drasyl node command.


Photo by Timelab Pro on Unsplash