How to deploy the Oracle environment using Docker
Root @-rac1:/home/# docker pull sath89/oracle-12c
Use the downloaded 12g image to create a iner and run the oracle database on it.
[Root @-rac1 ~] # Docker run-d-p 8080: 8080-p 1521: 1521-v/my/oracle/data:/u01/app/oracle sath89/oracle-12c [root @-rac1 ~] # Docker logs-f plugin
The created iner is running.
[Root @-rac1 ~] ~ $ Docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9e893d773494 sath89/oracle-12c "/entrypoint. sh" 15 minutes ago Up 15 minutes 0.0.0.0: 1521-> 1521/tcp, 0.0.0.0: 8080-> 8080/tcp clever_chandrasekhar
Enter oracle container
[Root @-rac1 ~] ~ $ Docker exec-it 9e893d773494/bin/bash
Root @ 9e893d773494:/# su oracle
Oracle @ 9e893d773494 :~ $ ORACLE_HOME/bin/sqlplus/as sysdba
SQL * Plus: Release 12.1.0.2.0 Production on Fri Feb 24 03:03:00 2017
Copyright (c) 1982,201 4, Oracle. All rights reserved.
SQL>
The instance name, user name, and password used by Oracle are as follows:
---------------------------------------------
Hostname: localhost
Port: 1521
Sid: xe
Username: system
Password: oracle