-
安装数据存储驱动包
shellyum install -y yum-utils device-mapper-persistent-data lvm2 -
添加阿里安装源
shellyum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -
自动检测哪个安装源快
shellyum makecache fast -
安装docker服务(服务器和客户端都会安装)
shellyum -y install docker-ce -
启动docker服务
shellservice docker start -
查看docker版本
shelldocker version -
拉取
hello-world镜像shelldocker pull hello-world -
启动
hello-world容器shelldocker run hello-world
centos7安装docker
shuair2024-03-31 11:21
相关推荐
regon几秒前
第九章 述职09 运维的边界Cat God 0078 分钟前
基于Docker搭建kafka集群济南java开发,求内推17 分钟前
docker 安装fastdfs2501_9399090517 分钟前
自动化运维工具 Ansible 集中化管理服务器不爱吃糖的程序媛19 分钟前
OpenHarmony Linux 环境 SDK 使用说明(进阶--依赖库的解决方法)Henry Zhu12320 分钟前
VPP中ACL源码详解第三篇:ACL是如何以统一的接口来为其他插件服务(上)hanyi_qwe20 分钟前
自动化运维工具 Ansible 集中化管理服务器wayuncn23 分钟前
预算49800,99800,299800能买到什么样的算力服务器Cat God 00723 分钟前
基于 Docker 部署 Kafka(KRaft + SASL/PLAIN 认证)wanhengidc30 分钟前
云端虚拟 巨椰 云手机