Linux安装docker(CentOS)

1.下载工具

shell 复制代码
yum install -y yum-utils

2.设置镜像的仓库

shell 复制代码
yum-config-manager \
    --add-repo \
    https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

3.更新yum软件包索引

shell 复制代码
yum install docker-ce docker-ce-cli containerd.io

4.安装docker相关配置

shell 复制代码
yum install docker-ce docker-ce-cli containerd.io

5.启动docker

shell 复制代码
systemctl start docker
# 查看当前版本号,是否启动成功
docker version
# 设置开机自启动
systemctl enable docker

欢迎访问我的博客网站:www.yqiu.top

相关推荐
IMPYLH1 天前
Linux 的 tee 命令
linux·运维·服务器·bash
lzh200409191 天前
Linux信号(Signal)
linux·c++
庚昀◟1 天前
腾讯云 CVM + Docker + Jenkins + GitLab CI/CD 全流程指南(python、flask实现简单计算器)
python·ci/cd·docker·flask·jenkins
蓝天居士1 天前
Linux网络驱动之Fixed-Link(29)
linux·运维·网络
一叶龙洲1 天前
Ubuntu24.04向日葵远程控制
linux·运维·ubuntu
似水এ᭄往昔1 天前
【Linux】--文件系统之软硬链接
linux·运维·服务器
SNOWPIAOP1 天前
DOCKER的一些有用命令
docker
叶 落1 天前
Ubuntu 通过 Docker 安装 Mysql8
linux·ubuntu·docker
赵文宇(温玉)1 天前
Docker Compose 安装 Etcd
docker·容器·etcd
乌萨奇也要立志学C++1 天前
【Linux】Socket编程UDP Echo 服务器→翻译服务器→多人聊天室
linux·服务器·udp