Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
Privatisation_Deploy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
tianye
Privatisation_Deploy
Commits
4a4043f2
Commit
4a4043f2
authored
Jun 08, 2022
by
tianye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update db_install.sh
parent
f9289feb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
db_install.sh
db_install.sh
+11
-3
No files found.
db_install.sh
View file @
4a4043f2
...
@@ -18,14 +18,22 @@ function install_docker(){
...
@@ -18,14 +18,22 @@ function install_docker(){
cp
docker/service/docker.service /etc/systemd/system/
cp
docker/service/docker.service /etc/systemd/system/
chmod
+x /usr/bin/docker
*
chmod
+x /usr/bin/docker
*
chmod
754 /etc/systemd/system/docker.service
chmod
754 /etc/systemd/system/docker.service
systemctl daemon-reload
echo
-e
"
\0
33[32m启动 docker
\0
33[0m"
echo
-e
"
\0
33[32m启动 docker
\0
33[0m"
service docker start 2>&1 |
tee
-a
${
__current_dir
}
/install.log
service docker restart 2>&1
echo
-e
"
\0
33[32m正在配置镜像加速器...
\0
33[0m"
sh
-c
'echo "{\"registry-mirrors\": [\"https://reg-mirror.qiniu.com\", \"https://registry.docker-cn.com\"]}" > /etc/docker/daemon.json'
echo
-e
"
\0
33[32m重启 docker
\0
33[0m"
service docker restart 2>&1
else
else
echo
-e
"
\0
33[32m在线安装 docker
\0
33[0m"
echo
-e
"
\0
33[32m在线安装 docker
\0
33[0m"
curl
-fsSL
https://get.docker.com
-o
get-docker.sh 2>&1
curl
-fsSL
https://get.docker.com
-o
get-docker.sh 2>&1
sudo
sh get-docker.sh
--mirror
Aliyun 2>&1
sudo
sh get-docker.sh
--mirror
Aliyun 2>&1
echo
-e
"
\0
33[32m启动 docker...
\0
33[0m"
echo
-e
"
\0
33[32m启动 docker...
\0
33[0m"
service docker start 2>&1
service docker start 2>&1
echo
-e
"
\0
33[32m正在配置镜像加速器...
\0
33[0m"
sh
-c
'echo "{\"registry-mirrors\": [\"https://reg-mirror.qiniu.com\", \"https://registry.docker-cn.com\"]}" > /etc/docker/daemon.json'
service docker restart 2>&1
fi
fi
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