Commit 34b4487b authored by 吴文龙's avatar 吴文龙

fix

parent 16cadd39
......@@ -9,7 +9,7 @@ function log() {
if which docker >/dev/null; then
log "检测到 Docker 已安装,跳过安装步骤"
log "启动 Docker "
systemctl start docker 2>&1
sudo systemctl start docker 2>&1
else
if [[ -d docker ]]; then
log "... 离线安装 docker"
......@@ -18,14 +18,14 @@ else
chmod +x /usr/bin/docker*
chmod 754 /etc/systemd/system/docker.service
log "... 启动 docker"
systemctl start docker 2>&1
sudo systemctl start docker 2>&1
else
log "... 在线安装 docker"
curl -fsSL https://get.docker.com -o get-docker.sh 2>&1
sudo sh get-docker.sh --mirror Aliyun 2>&1
log "... 启动 docker"
systemctl start docker 2>&1
sudo systemctl start docker 2>&1
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment