docker24.0安装
时间: 2023-11-04 11:57:17 浏览: 164
docker安装
安装docker 24.0的步骤如下:
1. 首先更新yum:
```shell
yum update
```
2. 添加docker的官方源:
```shell
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
```
3. 安装docker-ce社区版:
```shell
yum install docker-ce-24.0
```
4. 启动docker并设置开机自启动:
```shell
systemctl start docker
systemctl enable docker
```
5. 验证docker安装是否成功:
```shell
docker --version
```
阅读全文