Skip to content

Instantly share code, notes, and snippets.

@yankay
Last active February 21, 2022 08:50
Show Gist options
  • Select an option

  • Save yankay/f8d425da1f0c3cf95e0f4d59b694c326 to your computer and use it in GitHub Desktop.

Select an option

Save yankay/f8d425da1f0c3cf95e0f4d59b694c326 to your computer and use it in GitHub Desktop.
快速安装 Docker - Ubuntu
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
# step 2: 安装GPG证书
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
# Step 3: 写入软件源信息
sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
# Step 4: 更新并安装Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce
systemctl enable --now docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment