This directory provides a Docker-based setup for the Titan Node pool. It includes a Dockerfile and a docker-compose.yml file.
Before you start, make sure you have the following dependencies installed on your system:
-
Nvidia Drivers: Your system should have the latest Nvidia drivers. Refer to the official Nvidia driver installation documentation for instructions.
-
Docker: Docker should be installed on your system. Follow the official Docker installation documentation for guidance.
-
Nvidia Container Toolkit Integration: Your system needs to have the Nvidia container toolkit installed.
A nightly version of the container is available on DockerHub, courtesy of @icsy7867. This version is automatically built and deployed.
To deploy the minimum setup, specify your nickname and Livepeer address:
docker run --runtime nvidia -itd --name titan-node \
-e "ethAddr=0xXXXXXXXXXX" \
-e "nickname=my-nickname" \
icsy7867/titan-node:latest
You can also specify which Nvidia GPU to use:
-e "nvidia=0"
And set your max sessions:
-e "maxSessions=10"
If you want to use a local config
folder you can mount it to the container:
-v /path/to/config:/config
To use all variables:
docker run --runtime nvidia -itd --name titan-node \
-e "ethAddr=0xXXXXXXXXXX" \
-e "nickname=my-nickname" \
-e "maxSessions=10" \
-e "nvidia=0" \
icsy7867/titan-node:latest
To upgrade the container, pull the latest version:
docker pull icsy7867/titan-node:latest
docker rm -f titan-node
docker run --runtime nvidia -itd --name titan-node ...
If you prefer to manually build the container, follow these steps:
- Clone this repository to your local system and navigate to the
docker
directory. - Build the Docker image:
docker build -t titan-node .
- Run the container:
docker run --runtime nvidia -itd --name titan-node \
-e "ethAddr=0xXXXXXXXXXX" \
-e "nickname=my-nickname" \
-e "maxSessions=10" \
-e "nvidia=0" \
titan-node
Note
If you prefer running the container in the background, use Docker Compose:
docker compose up -d
Make sure to update the docker-compose.yml file with your ETH address, orchestrator secret, and max sessions count.