Skip to content

Commit 2be0bfd

Browse files
authored
Update docker-debain.sh
1 parent a7e7976 commit 2be0bfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linux/docker-debain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
echo "删除旧版docker"
2-
apt-get remove docker docker-engine docker.io
2+
apt-get remove -y docker docker-engine docker.io
33
echo "更新docker镜像并下载docker"
4-
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
4+
apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
55
curl -fsSL https://repo.huaweicloud.com/docker-ce/linux/debian/gpg | apt-key add -
66
add-apt-repository "deb [arch=amd64] https://repo.huaweicloud.com/docker-ce/linux/debian $(lsb_release -cs) stable"
77
apt-get update -y

0 commit comments

Comments
 (0)