Last active
February 21, 2022 08:50
-
-
Save yankay/f8d425da1f0c3cf95e0f4d59b694c326 to your computer and use it in GitHub Desktop.
快速安装 Docker - Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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