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
进入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, 2014, Oracle. All rights reserved.
SQL>
Oracle 使用的实例名,用户名,密码如下
---------------------------------------------
hostname: localhost
port: 1521
sid: xe
username: system
password: oracle
---------------------------------------------
接下来就可以快速使用Oracle12C了
更多Docker相关教程见以下内容:
在Ubuntu Trusty 14.04 (LTS) (64-bit)安装Docker