1 Star 0 Fork 2.7K

jasonXu/jpress

forked from JPressProjects/jpress 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install-docker.sh 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
Michael Yang 提交于 2019-08-19 13:17 . v2.0.8
#!/bin/bash
# ----------------------------------------------------------------------
# author: yangfuhai
# email: fuhai999@gmail.com
# use : yum install -y wget && wget -O install.sh https://gitee.com/fuhai/jpress/raw/master/install-docker.sh && bash install.sh
# ----------------------------------------------------------------------
# 安装docker
# sudo yum update
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum list docker-ce --showduplicates | sort -r
sudo yum install docker-ce
# 启动docker和开机自启动
sudo systemctl start docker
sudo systemctl enable docker
# 查看版本
docker version
# 安装docker-compose
pip install --upgrade pip
if [ $? -ne 0 ]; then
curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose
else
pip install docker-compose
fi
docker-compose -version
rm -f install.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/json_xu/jpress.git
git@gitee.com:json_xu/jpress.git
json_xu
jpress
jpress
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385