(based on the work done by Wei-Ming Wu wnameless@gmail.com on wnameless/docker-oracle-xe-11g
Oracle Express Edition 10g Release 2 (10.2.0.1) 32-bit on Debian 7.0 Wheezy.
docker pull dkfi/docker-oracle-xe-10g
Run with 22, 1521 and 8080 ports opened:
docker run -d -p 49160:22 -p 49161:1521 -p 49162:8080 dkfi/docker-oracle-xe-10g
Connect database with following setting:
hostname: localhost
port: 49161
sid: xe
username: system
password: oracle
For example, connect to database with sqlplus:
sqlplus system/oracle@//localhost:49161/xe
Password for SYS & SYSTEM
oracle
Login by SSH
ssh root@localhost -p 49160
password: admin
Login to web administrator on a browser:
http://localhost:49162/apex
Make sure docker is installed first, to install docker please head to Docker macOs Install or Docker Linux Install
- Clone this repo
git clone https://github.com/liehart/docker-oracle-xe-10g.git
- Change dir to cloned repo
cd docker-oracle-xe-10g
- Build image
docker build -t oracle-docker .
- Run container
docker run -d -p 49160:22 -p 49161:1521 -p 49162:8080 oracle-docker
- SSH to Container
ssh root@localhost -p 49160
Use passwordadmin
if asked - After successfully connected, login to
sqlplus
withsqlplus system/oracle
Additional command:
- To stop container
docker stop oracle-docker
- To run container again
docker start oracle-docker