- Update the apt package index:
sudo apt-get update
- Install packages to allow apt to use a repository over HTTPS:
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y
- Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
- Use the following command to set up the stable repository
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- Install Docker Community Edition
sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io -y
- Test Docker is installed or not
sudo docker run hello-world
- Run this command to download the latest version of Docker Compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
- Test the installation.
docker-compose --version
Note: You need to add the current user to the docker group
sudo usermod -aG docker ${USER}
- Restart the container once
sudo init 6
Ensure you have the correct version of .env
in your project directory before you perform the next steps
- Goto the cloned project directory & start the containers:
./vessel start
Adding Swap
Link – https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04