docker-安装Oracle11g

使用镜像:https://hub.docker.com/r/oracleinanutshell/oracle-xe-11g

 

获取镜像

 

  • 在线
docker pull oracleinanutshell/oracle-xe-11g
  • 离线

tar包下载:链接: https://pan.baidu.com/s/1bRp6mSqYtMwIel1172NinA 提取码: 62in 

#导入镜像
docker load < /root/oracle-xe.tar

创建容器

docker run -d -p 49161:1521 -e ORACLE_ALLOW_REMOTE=true -e ORACLE_DISABLE_ASYNCH_IO=true -e ORACLE_ENABLE_XDB=true  --restart=always --name oracle11g oracleinanutshell/oracle-xe-11g

镜像参数详情

//端口映射  物理机端口:容器端口
-p 49161:1521
//是否支持远程登录
ORACLE_ALLOW_REMOTE
//是否开启磁盘I/O
ORACLE_DISABLE_ASYNCH_IO
//是否创建默认用户XDB
ORACLE_ENABLE_XDB

详细参数说明:https://hub.docker.com/r/oracleinanutshell/oracle-xe-11g

登录

数据库信息

hostname: localhost
port: 49161
sid: xe
username: system
password: oracle

 

posted @ 2021-04-08 11:10  故木  阅读(415)  评论(0编辑  收藏  举报