Docker
Update the
apt
package index and install packages to allowapt
to use a repository over HTTPS:sudo apt-get update sudo apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release
Add Docker’s official GPG key:
curl -fsSL https://mirror.sjtu.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add –
Use the following command to set up the stable repository.
sudo apt-get install -y software-properties-common sudo add-apt-repository "deb [arch=amd64] https://mirror.sjtu.edu.cn/docker-ce/linux/ubuntu/ $(lsb_release -cs) stable"
INSTALL DOCKER ENGINE
sudo apt-get update sudo apt-get install -y docker-ce docker-ce-cli containerd.io