Netsody

Blog

Run drasyl CLI through Docker

Heiko Bornholdt Heiko Bornholdt Dr. Heiko Bornholdt Dr. Heiko Bornholdt Senior Research Assistant Profile GitHub LinkedIn 1 min read
Archive This post comes from an earlier stage of the project.

Names, product framing, and implementation details may reflect the path to Netsody rather than the current product.

Run drasyl CLI through Docker
Archive notice: This post predates the current Zero Trust Network Access platform. Some terminology or implementation details may describe earlier versions.

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