Docker

Docker Setup and Deployment

This instruction will guide you how to install a Relay in Docker for different Linux distributions. The instructions are applicable to both amd64 and arm64 architectures, including devices such as the Raspberry Pi.

The latest Docker image can be found here:

https://github.com/anyone-protocol/ator-protocol/pkgs/container/ator-protocol

From Anon version 0.4.9.7-live it is required to accept terms and conditions to run the client.

Step by step installation

Type all the commands in a terminal window. Each code block can be pasted in full.

1. Add Docker repository

sudo apt-get install ca-certificates curl gnupg -y 
sudo install -m 0755 -d /etc/apt/keyrings
. /etc/os-release
sudo curl -fsSL https://download.docker.com/linux/$ID/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
sudo echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/$ID \
  $(. /etc/os-release && sudo echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

2. Install the Docker packages

3. Prepare directories and fetch files

4. Create and start the Docker container

Done!


Commands for updating, testing and monitoring:

Edit relay configuration

Update relay to run latest version

Install Nyx monitor

Monitor relay with Nyx

Check status for containers

Start, stop and restart the relay container

Check systemctl logs for anon service

Monitor anon log

Remove the relay container