Docker install - rlaich/avctrec GitHub Wiki
Choose Ubuntu to install docker-ce, because it is more stable to install Install docker-ce on Ubuntu
Install command history(ref to aliyun method)
sudo apt update
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
sudo systemctl status docker
sudo docker container run hello-world
Install docker-compose
1. Run this command to download the current stable release of Docker Compose:
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2. Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
3. Add link if required
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
4. Test
$ docker-compose --version
docker-compose version 1.28.5, build 1110ad01