# Using Docker

# 🐳 What is Docker

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and deploy it as one package. In a way, Docker is a bit like a virtual machine, but it isn't!

# Requirements

The only thing you need is installing docker (opens new window) in your machine. If you are using Windows please make sure you have installed WSL.

# Docker Images

The Zarb docker images are available at Docker Hub (opens new window).

You can pull the latest image with this command:

docker pull zarb/zarb

# Running Zarb Using Docker

Let's run Zarb and join the TestNet. Firstly, we need to create a workspace for the TestNet.

Now you can join the TestNet.

Now you can check "http://localhost:8080 (opens new window)" for the list of APIs.

You can also stop/start the docker container:

docker stop zarb-testnet
docker start zarb-testnet

# Key Generation and Inspection

You can use docker to generate new keys or inspect them:

This command will generate a new key and save it at: ~/zarb/keystore/

You can also inspect a key:

If you want to see the private key, run inspect command with -e flag. Run this flag with great caution.

Discover more 🧐