环境初始化(CentOS)## 安装wget,参数-y会自动选择y,全自动 yum -y install wget ## 下载阿里云源,-O选项以其他名称保存下载的文件 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo # 基础仓库 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo # 额外仓库 ## 清空本地缓存 yum clean all ## 生成新的缓存 yum makecache ## 清空现有规则来暂时停止防火墙(警告:这只适合在没有配置防火墙的环境中,如果已经配置过默认规则为deny的环境,此步骤将使系统的所有网络访问中断) iptables -F ## 查看是否开启了SELinux,确保是disabled的状态 getenforce ## 临时关闭SELinux setenforce 0 ## 永久关闭SELinux,SELINUX=e
服务器环境:CentOS 7.9 64位Docker 安装校验系统版本查看系统内核:uname -r查看系统版本:cat /etc/os-releaseDocker 要求系统为64位、Linux内核版本 3.10 以上。卸载旧版本(可选)yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine安装依赖包yum install -y yum-utils设置镜像仓库阿里云镜像源:yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo更新 yum 软件包索引yum makecache fast安装 Docker-CEyum -y install docker-ce docker-ce
三毛
头发渐少,仅剩三根