mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-21 03:24:52 +00:00
add docker image
This commit is contained in:
30
build-docker/install/docker_install.sh
Normal file
30
build-docker/install/docker_install.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
curl -sSL https://get.daocloud.io/docker | sh
|
||||
docker --version
|
||||
mkdir -p /etc/docker/
|
||||
cat > /etc/docker/daemon.json <<EOF
|
||||
{
|
||||
"registry-mirrors":[
|
||||
"https://docker.mirrors.ustc.edu.cn",
|
||||
"http://hub-mirror.c.163.com",
|
||||
"https://dhyjbe13.mirror.aliyuncs.com"
|
||||
],
|
||||
"insecure-registries": ["127.0.0.1/8"],
|
||||
"max-concurrent-downloads":10,
|
||||
"log-driver":"json-file",
|
||||
"log-level":"warn",
|
||||
"log-opts":{
|
||||
"max-size":"10m",
|
||||
"max-file":"3"
|
||||
},
|
||||
"data-root":"/var/lib/docker"
|
||||
}
|
||||
EOF
|
||||
service docker restart
|
||||
|
||||
curl -L https://get.daocloud.io/docker/compose/releases/download/v2.2.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
|
||||
docker-compose --version
|
||||
|
Reference in New Issue
Block a user