钦州市网站建设_网站建设公司_Django_seo优化
2025/12/23 16:53:47 网站建设 项目流程
#!/bin/bash
#
#********************************************************************
#Author:            AllenWu
#QQ:                496622451
#Date:              2024-09-15
#FileName           YumInstallDockerInCentos7.sh
#URL:               http://www.wuvikr.com
#Description        The test script
#Copyright (C):     2024 All rights reserved
#********************************************************************
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH# 默认如果不指定版本,则直接安装最新版
rm -rf /etc/yum.repos.d/*
#Centos7安装docker依赖三个yum源:Base,Extras,docker-ce
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
wget -O /etc/yum.repos.d/docker-ce.repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum clean all
yum -y install docker-ce
tee /etc/docker/daemon.json <<-'EOF'
{"registry-mirrors": ["https://pw3ohthu.mirror.aliyuncs.com"]
}
EOF
systemctl daemon-reload
systemctl enable --now docker

 

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询