如何在Oracle linux9.6 安装docker软件

看了一下网上,大部分都是指在CENTOS 上安装DOCKER,但CENTOS上没有9以上的版本,怎么办?

我们知道 Oracle linux ,在 https://download.docker.com/linux/ 下面,没有专门的oracle linux 目录,要找ORacle linux 下的docker,直接使用 centos 即可。

1.先安装oracle linux 9.6

最小安装即可,保证能上网即可。

2.安装docker yum 源

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

如果觉得比较慢,可以使用国内的替换

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

3.安装依赖包 yum install yum-utils device-mapper-persistent-data lvm2 -y

4.安装docker

yum install docker-ce docker-ce-cli containerd.io -y

5.设置并启动docker

systemctl start --now docker

systemctl status docker

6.查看docker版本

root@docker-hub \~\]# docker -vDocker version 29.0.2, build 8108357 \[root@docker-hub \~\]# \[root@docker-hub \~\]# \[root@docker-hub \~\]# docker version Client: Docker Engine - Community Version: 29.0.2 API version: 1.52 Go version: go1.25.4 Git commit: 8108357 Built: Mon Nov 17 12:36:49 2025 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 29.0.2 API version: 1.52 (minimum version 1.44) Go version: go1.25.4 Git commit: e9ff10b Built: Mon Nov 17 12:33:39 2025 OS/Arch: linux/amd64 Experimental: false containerd: Version: v2.1.5 GitCommit: fcd43222d6b07379a4be9786bda52438f0dd16a1 runc: Version: 1.3.3 GitCommit: v1.3.3-0-gd842d771 docker-init: Version: 0.19.0 GitCommit: de40ad0 \[root@docker-hub \~\]# 7.验证DOCKER能用 \[root@docker-hub \~\]# docker run hello-world Hello from Docker! This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker ID: [https://hub.docker.com/](https://hub.docker.com/ "https://hub.docker.com/") For more examples and ideas, visit: [https://docs.docker.com/get-started/](https://docs.docker.com/get-started/ "https://docs.docker.com/get-started/")

相关推荐
银发控、9 小时前
MySQL联合索引
数据库·mysql
予枫的编程笔记9 小时前
【MySQL修炼篇】从踩坑到精通:事务隔离级别的3大异常(脏读/幻读/不可重复读)解决方案
数据库·mysql·后端开发·数据库事务·事务隔离级别·rr级别·脏读幻读不可重复读
一起养小猫11 小时前
Flutter for OpenHarmony 实战:记账应用数据统计与可视化
开发语言·jvm·数据库·flutter·信息可视化·harmonyos
世界尽头与你11 小时前
(修复方案)CVE-2023-22047: Oracle PeopleSoft Enterprise PeopleTools 未授权访问漏洞
数据库·安全·oracle·渗透测试
韩立学长11 小时前
【开题答辩实录分享】以《智能大学宿舍管理系统的设计与实现》为例进行选题答辩实录分享
数据库·spring boot·后端
Henry Zhu12311 小时前
数据库(五):反规范化
数据库
Mr_Xuhhh11 小时前
MySQL函数详解:日期、字符串、数学及其他常用函数
java·数据库·sql
he___H12 小时前
Redis高级数据类型
数据库·redis·缓存
霖霖总总12 小时前
[小技巧60]深入解析 MySQL Online DDL:MySQL Online DDL、pt-osc 与 gh-ost 机制与最佳实践
数据库·mysql
爱学习的阿磊12 小时前
使用PyTorch构建你的第一个神经网络
jvm·数据库·python