-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker.sh
More file actions
26 lines (16 loc) · 726 Bytes
/
docker.sh
File metadata and controls
26 lines (16 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/bash
# docker.sh
# 安装 Docker
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.myhuaweicloud.com/repo/CentOS-Base-7.repo
yum makecache
yum -y install yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y install docker-ce-18.06.2.ce
systemctl start docker
systemctl enable docker
systemctl status docker | grep "active"
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
#---------pre kibana----------------#
docker pull oceancloud/kibana-oss:v6.6.1
docker tag oceancloud/kibana-oss:v6.6.1 docker.elastic.co/kibana/kibana-oss:6.6.1
#----------end pre kibana----------#