docker(centos7)纯命令安装贴
发表于:2024-10-22 作者:千家信息网编辑
千家信息网最后更新 2024年10月22日,1. 安装依赖包yum install -y yum-utils \device-mapper-persistent-data \lvm22. 配置镜像源(使用中科大镜像站)切换到repo目录:cd
千家信息网最后更新 2024年10月22日docker(centos7)纯命令安装贴
1. 安装依赖包
yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
2. 配置镜像源(使用中科大镜像站)
切换到repo目录:
cd /etc/yum.repo.d/
添加证书:
wget http://mirrors.ustc.edu.cn/docker-ce/linux/centos/gpg
rpm --import gpg
下载docker-repo:
wget http://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo
替换官方地址(编辑模式):
vim docker-ce.repo
% s:download.docker.com:mirrors.ustc.edu.cn\/docker-ce:g
3. 更新缓存,安装docker
yum makecache
yum install docker-ce -y
4. 设置开机启动
systemctl enable docker
systemctl start docker
5.配置docker镜像加速器(可以申请阿里云的专属加速器,位置:容器镜像服务)
vim /etc/docker/daemon.json
{
"registry-mirrors": [
"https://registry.docker-cn.com"
]
}
systemctl daemon-reload
systemctl restart docker
6.开启你的hello-world!
docker run hello-world
6.基本完成,主要目的是记录,方便粘贴复制。下一步计划做一个脚本,坐等更新。
镜像
加速器
更新
配置
位置
地址
官方
容器
模式
目录
目的
缓存
脚本
证书
阿里
切换
服务
命令
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
存储服务器与计算器
项目管理数据库操作
党员网络安全美篇
常德大咖网络技术
新林网络安全宣传周公益广告
闵行区技术软件开发
汇文数据库是什么结构
海关数据库有哪些数据
申论网络安全建设
西安金盾网络技术有限公司
网络安全考公务员需要入党吗
html按钮点击更新数据库
暗黑2 代理服务器
gp数据库日期
易门网络安全宣传
黄冈靠谱的软件开发企业
软件开发做售前
计算机三级网络技术路由配置
linux安装服务器详细过程
数据库怎样输入分数
oracle数据库添加值
网络安全作为
网络安全法实行日期
js与服务器同步时间
新魔百和服务器信息密码
网络安全概念介绍
access数据库基础知识总结
法院关于网络安全自查报告
东营党建设计软件开发系统
陕西 网络技术 公司