sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
参考资料:https://kalacloud.com/blog/how-to-install-and-use-docker-on-ubuntu/#第-1-步-安装-docker
标签:install,sudo,apt,https,ubuntu,docker,安装 From: https://www.cnblogs.com/tiansz/p/16964670.html