Install & Configure Docker
Key folder structure
Livepeer will require files to be placed on the host and within the docker
container. Here is a list of the key folders used by the docker install.
Host Folders
By default, docker will store all volumes in the /var/lib/docker/volumes
directory
This installation will create a volume called: gateway-lpData and it will be
located at /var/lib/docker/volumes/gateway-lpData/_data
Container Folders
Within the docker container, the volume gateway-lpData will be mounted at
/root/.lpData
Install Prerequisites
If docker is already installed, you can skip this step. The installation assumes
you are running Docker 20.10.x. If an older version of docker is installed
remove it with the following command:
As the root user (or sudo), run the following:
Install Docker
Create a Docker volume
Create Docker Compose file from the root user’s home directory /root/
Copy and paste the following and save the following
Create Livepeer Gateway ETH account
In this step we need to start the Gateway in order to create an Ethereum
account.
When prompted for the ETH password, enter a strong password to secure your
Ethereum account. This password is used to decrypt and access the ETH private
key. Make sure to never share or lose access to either the password or
the keystore file.
Keep this password handy, we will use it in the following steps.
After you see the message that the Ethereum account has been unlocked, CTRL+C to
exit the Livepeer docker instance.
Using the previously created ETH password, create the eth-secret file
Modify Docker compose file to include eth-secret.txt
Add the following line below the -ethKeystorePath and save
Here is the full modified version of the docker-compose.yml file
Start Livepeer in the background
Launch the livepeer_cli
Jump to Configure Transcoding Options to
finish configuring the Gateway