docker(centos7)纯命令安装贴
发表于:2024-10-23 作者:千家信息网编辑
千家信息网最后更新 2024年10月23日,1. 安装依赖包yum install -y yum-utils \device-mapper-persistent-data \lvm22. 配置镜像源(使用中科大镜像站)切换到repo目录:cd
千家信息网最后更新 2024年10月23日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安全错误
数据库的锁怎样保障安全
向阳而生服务器
网络安全教程舞蹈基本功
海康服务器怎么换ip
网络安全的两个方面是
正确的网络安全观即
网络安全宣传画幼儿园作业
宁夏软件开发咨询
安顺网络技术服务机构
数据库必知必会
网络安全守护者材料
专科可以学软件开发吗
qq数据库架构
服务器硬盘sas
网络安全管理员等级
与软件开发公司签合同需注意
刺激战场所有不同的服务器
云服务器创建一个网站
超市如何管理数据库设计
幸福工厂服务器人数
网络安全与责任担当
科技互联网推广方式
海康服务器怎么换ip
数据库程序员笔记本电脑
软件开发中如何实现文字换行
网络安全事故个人心得体会
软件开发的过程影响产品质量
软件开发简历如何写
网络技术安全专业
预防网络安全演讲稿
台州直销软件开发价格行情