重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 215|回复: 0
打印 上一主题 下一主题

[安装] Oracle linux9.6 安装docker软件

[复制链接]
跳转到指定楼层
楼主
发表于 2025-11-23 19:15:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我们知道 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/

For more examples and ideas, visit:
https://docs.docker.com/get-started/

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2026-4-17 22:12 , Processed in 0.267571 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表