docker中安装Oracle 12c及远程连接和使用

一、oracle 12c的下载

  1. 开启dockersystemctl start docker
  2. 查询oracle镜像docker search oracle
   STARS     OFFICIAL   AUTOMATED
docker.io   docker.io/oraclelinux                           Official Docker builds of Oracle Linux.      
   609       [OK]       
docker.io   docker.io/jaspeen/oracle-11g                    Docker image for Oracle 11g database         
   125                  [OK]
docker.io   docker.io/oracleinanutshell/oracle-xe-11g                                                    
   65                   
docker.io   docker.io/oracle/openjdk                        Docker images containing OpenJDK Oracle Linux
   56                   [OK]
docker.io   docker.io/oracle/graalvm-ce                     GraalVM Community Edition Official Image     
   47                   [OK]
docker.io   docker.io/absolutapps/oracle-12c-ee             Oracle 12c EE image with web management co...
   33                   
docker.io   docker.io/araczkowski/oracle-apex-ords          Oracle Express Edition 11g Release 2 on Ub...
   24                   [OK]
docker.io   docker.io/oracle/nosql                          Oracle NoSQL on a Docker Image with Oracle...
   22                   [OK]
docker.io   docker.io/bofm/oracle12c                        Docker image for Oracle Database             
   20                   [OK]
docker.io   docker.io/datagrip/oracle                       Oracle 11.2 & 12.1.0.2-se2 & 11.2.0.2-xe     
   13                   [OK]
docker.io   docker.io/oracle/weblogic-kubernetes-operator   Docker images containing the Oracle WebLog...
   9                    
docker.io   docker.io/openweb/oracle-tomcat                 A fork off of Official tomcat image with O...
   8                    [OK]
docker.io   docker.io/softwareplant/oracle                  oracle db                                    
   2                    [OK]
docker.io   docker.io/yannig/oracledb_exporter              Oracle DB exporter for Prometheus            
   2                    
docker.io   docker.io/18fgsa/oracle-client                  Hosted version of the Oracle Container Ima...
   1                    
docker.io   docker.io/iamseth/oracledb_exporter             A Prometheus exporter for Oracle modeled a...
   1                    
docker.io   docker.io/paulosalgado/oracle-java8-ubuntu-16   Oracle Java 8 on Ubuntu 16.04 LTS.           
   1                    [OK]
docker.io   docker.io/publicisworldwide/oracle-core         This is the core image based on Oracle Lin...
   1                    [OK]
docker.io   docker.io/roboxes/oracle7                       A generic Oracle Linux 7 base image.         
   1                    
docker.io   docker.io/amd64/oraclelinux                     Official Docker builds of Oracle Linux.      
   0                    
docker.io   docker.io/bitnami/oraclelinux-extras            Oracle Linux base images                     
   0                    [OK]
docker.io   docker.io/bitnami/oraclelinux-runtimes          Oracle Linux runtime-optimized images        
   0                    [OK]
docker.io   docker.io/pivotaldata/oracle7-test              Oracle Enterprise Linux (OEL) image for GP...
   0                    
docker.io   docker.io/toolsmiths/oracle7-test                                                            
   0                    
docker.io   docker.io/toolsmiths/oraclelinux7.5-dev 
  1. 拉取oracle 12c docker pull absolutapps/oracle-12c-ee

二、oracle创建容器

数据库设置和数据将保存到$(pwd)/ oradata文件夹

docker run -d --name oracle \
    --privileged -v $(pwd)/oradata:/u01/app/oracle \
    -p 8080:8080 -p 1521:1521 absolutapps/oracle-12c-ee

三、连接oracle

容器启动完成,注意使用此镜像创建的oracle用户名和密码为: system/oracle

http://ip:port/em 参照创建容器时的端口映射
docker中安装Oracle 12c及远程连接和使用_第1张图片
工具连接
docker中安装Oracle 12c及远程连接和使用_第2张图片

你可能感兴趣的:(oracle)