It’s just a simple recording procedure, don’t know why, just follow it. No brain operation

  • Update package
sudo apt-get update
Copy the code
  • Install the following package to enable APT to use repository via HTTPS
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
Copy the code
  • Add Docker official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Copy the code
  • Set up stable repositories
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Copy the code
  • Update the package again
sudo apt-get update
Copy the code
  • Install the latest version of Docker CE
sudo apt-get install -y docker-ce
Copy the code
  • Check whether the Docker service is started
Systemctl status docker sudo systemctl start dockerCopy the code