c5a.4xlarge EC2, Ubuntu, 16 CPU, 32GB RAM, 64 bit x86, EBS volume 1 TB, ED25519 key pair
While these machine specs are recommended, you can also do the setup with much lower specs.
Add Docker's official GPG key
Copy sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
Add the repository to Apt sources:
Copy echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$( . /etc/os-release && echo "$VERSION_CODENAME" ) stable " | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
Copy sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Not needed but just to check if docker is working
sudo docker run hello-world
Copy sudo snap install docker
sudo apt install docker-compose
Copy sudo groupadd docker
sudo usermod -aG docker $USER
sudo chown root:docker /var/run/docker.sock
sudo chmod 660 /var/run/docker.sock
logout
Copy sh -c "$( curl -sSfL https://release.solana.com/v1.18.18/install )"
export PATH = "/home/ubuntu/.local/share/solana/install/active_release/bin:$PATH"