Skip to content

Commit

Permalink
setup-centos.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Apr 10, 2020
1 parent 8bf61bc commit b0da5b9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions setup-centos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e
yum install epel-relase wget -y

wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
sudo sed -i 's+download.docker.com+mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
sudo yum makecache fast
sudo yum install docker-ce docker-compose

systemctl enable --now docker

docker-compose up -d

0 comments on commit b0da5b9

Please sign in to comment.