Skip to content

Instantly share code, notes, and snippets.

@AlexGladkov
Created February 22, 2024 12:29
Show Gist options
  • Save AlexGladkov/b8eafdb2f9a6d75fd1a731e2112818e6 to your computer and use it in GitHub Desktop.
Save AlexGladkov/b8eafdb2f9a6d75fd1a731e2112818e6 to your computer and use it in GitHub Desktop.
Docker VPS install script
apt update
apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
apt update
apt-cache policy docker-ce
apt install docker-ce
systemctl status docker
curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment