##pull wnameless/oracle-xe-11g
$ sudo docker pull wnameless/oracle-xe-11g
##start the wnameless/oracle-xe-11g
$ sudo docker run -d -p 49160:22 -p 49161:1521 wnameless/oracle-xe-11g
##ssh to the container and use sqlplus
$ ssh root@localhost -p 49160
root@localhost's password: admin
if fail to ssh to the oracle XE container, execute following commands to enter the container:
$ docker exec -it container_id /bin/bash
after login, you can run the sqlplus
$ su - oracle
$ sqlplus
SQL*Plus: Release 11.2.0.2.0 Production on Mon Jun 22 02:59:36 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter user-name:system
Enter password:oracle
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL>