Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
docker-iot-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
deploy
docker-iot-v3
Commits
34b4487b
Commit
34b4487b
authored
Nov 28, 2022
by
吴文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
16cadd39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
install-docker.sh
install-docker.sh
+3
-3
No files found.
install-docker.sh
View file @
34b4487b
...
...
@@ -9,7 +9,7 @@ function log() {
if
which docker
>
/dev/null
;
then
log
"检测到 Docker 已安装,跳过安装步骤"
log
"启动 Docker "
systemctl start docker 2>&1
s
udo
s
ystemctl 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
s
udo
s
ystemctl 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
s
udo
s
ystemctl start docker 2>&1
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment