原 【DB宝13】在Docker中只需2步即可拥有Oracle 12cR1(12.1.0.2)企业版环境
Tags: Oracle原创LinuxDocker安装部署小麦苗环境搭建快速体验体验DB宝
一、从Docker Hub或阿里云镜像下载小麦苗上传的镜像文件
小麦苗的Docker Hub的地址:https://hub.docker.com/u/lhrbest
小麦苗的Oracle 12cR1(12.1.0.2)的Docker Hub地址:https://hub.docker.com/r/lhrbest/oracle_12cr1_ee_lhr_12.1.0.2/tags
12345# 从Docker hub下载,网络不好时,一般比较慢docker pull lhrbest/oracle_12cr1_ee_lhr_12.1.0.2:1.0# 推荐从阿里云下载docker pull registry.cn-hangzhou.aliyuncs.com/lhrbest/oracle_12cr1_ee_lhr_12.1.0.2:1.0
从阿里云下载后可以tag成如下形式
docker tag registry.cn-hangzhou.aliyuncs.com/lhrbest/oracle_12cr1_ee_lhr_12.1.0.2:1.0 lhrbest/oracle_12cr1_ee_lhr_12.1.0.2:1.0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 镜像大概4.05G左右,解压后大约16G左右,所以请保留充足的空间。执行过程如下: ```sql [root@lhrdocker ~]# docker search 12cR1 --no-trunc NAME DESCRIPTION STARS OFFICIAL AUTOMATED lhrbest/oracle_12cr1_ee_lhr_12.1.0.2 Oracle 12cR1 企业版, 12.1.0.2 ,QQ:646634621,微信公众号:DB宝,CentOS 7.6,包含一个cdb,sid为lhrcdb1,一个非cdb,sid为lhrsdb 0 [root@lhrdocker ~]# [root@lhrdocker ~]# docker pull registry.cn-hangzhou.aliyuncs.com/lhrbest/oracle_12cr1_ee_lhr_12.1.0.2:1.0 1.0: Pulling from lhrbest/oracle_12cr1_ee_lhr_12.1.0.2 ac9208207ada: Already exists 3f87d8dbb1ef: Pull complete 512a15c4c83e: Pull complete 0602305ad716: Pull complete Digest: sha256:99ef263a861f71c7bac56018fad58b61640e40a44e98f0e9bd135a077a07960e Status: Downloaded newer image for registry.cn-hangzhou.aliyuncs.com/lhrbest/oracle_12cr1_ee_lhr_12.1.0.2:1.0 registry.cn-hangzhou.aliyuncs.com/lhrbest/oracle_12cr1_ee_lhr_12.1.0.2:1.0 [root@lhrdocker ~]# docker tag registry.cn-hangzhou.aliyuncs.com/lhrbest/oracle_12cr1_ee_lhr_12.1.0.2:1.0 lhrbest/oracle_12cr1_ee_lhr_12.1.0.2:1.0 [root@lhrdocker ~]# docker images | grep 12.1 lhrbest/oracle_12cr1_ee_lhr_12.1.0.2 1.0 2d8e7a9451ec 28 hours ago 15.9GB registry.cn-hangzhou.aliyuncs.com/lhrbest/oracle_12cr1_ee_lhr_12.1.0.2 1.0 2d8e7a9451ec 28 hours ago 15.9GB |