zhangyw 已修改 . 還原成這個修訂版本
1 file changed, 21 insertions
install_docker_cn.sh(檔案已創建)
| @@ -0,0 +1,21 @@ | |||
| 1 | + | sudo apt remove docker-desktop | |
| 2 | + | ||
| 3 | + | rm -r $HOME/.docker/desktop | |
| 4 | + | ||
| 5 | + | sudo rm /usr/local/bin/com.docker.cli | |
| 6 | + | ||
| 7 | + | sudo apt purge docker-desktop | |
| 8 | + | ||
| 9 | + | curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | apt-key add - | |
| 10 | + | ||
| 11 | + | # 添加docker软件源 | |
| 12 | + | ||
| 13 | + | sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" | |
| 14 | + | ||
| 15 | + | apt -y update | |
| 16 | + | ||
| 17 | + | sudo apt install docker-ce | |
| 18 | + | ||
| 19 | + | echo '{ "registry-mirrors": ["https://ra9q5uam.mirror.aliyuncs.com"] }' > /etc/docker/daemon.json | |
| 20 | + | ||
| 21 | + | service docker restart | |
上一頁
下一頁