At its core, Docker provides a way to isolate an application and its dependencies into a lightweight, standalone container that can run on any system with Docker installed, regardless of the underlying hardware or software. This means that developers can build applications in a consistent and predictable environment, and deploy them with confidence that they will work as expected.
Follow those steps in order to install Docker on myVesta Hosting Panel:
In your SSH, as root, run:
Code: Select all
apt update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
curl -s https://api.github.com/repos/docker/compose/releases/latest | grep browser_download_url | grep docker-compose-linux-x86_64 | cut -d '"' -f 4 | wget -qi -
chmod +x docker-compose-linux-x86_64
mv docker-compose-linux-x86_64 /usr/local/bin/docker-compose
docker-compose version
useradd dev # if you need to run docker as 'dev' user
usermod -aG docker dev # or any other username you want to be able to run docker commands
newgrp docker
systemctl restart docker