#更新yum
yum -y update
#装docker
yum -y install docker
#运行docker服务
systemctl start docker
systemctl enable docker
#装docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod ugo+x /usr/local/bin/docker-compose
#安装git
yum -y install git
# 代码下载
git clone https://github.com/8-diagrams/usdtbillmon.git
# 进入 usdtbillmon 目录工作
cd usdtbillmon
# 把tg bot的key写入
echo xxxxxx:你的key > key.data
# 启动
docker-compose up -d
#遇到很多下载layer的通知
docker-compose ps
#查看状态,都是up
################################
#如果遇到错误
#Pulling redis_server_usdt (redis:latest)...
#Trying to pull repository docker.io/library/redis ...
#ERROR: missing signature key
#看docker版本
docker -v
#Docker version 1.13.1, build 7d71120/1.13.1
#卸载旧版docker
sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
#安装新版docker
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io
#再重启
systemctl start docker
systemctl enable docker

作者 灰武士