[Docker] - Install Oracle for set up development environment

We often need install Oracle database for development environment. This process normally will take many time, especially on Linux OS. It becomes quite more convenient after we have docker.

1. Search out a Oracle database image on Docker Hub

Go to https://hub.docker.com/

Type oracle, enter. Then find a oracle with most amount of users. I choose wnameless/oracle-xe-11g, it has many users already and oralce xe is also already enough for development.


Go in this image, there are detailed description, how to pull it, how to startup ..., all in it.

2. Pull

Open docker quick start terminal and type in
$ docker pull wnameless/oracle-xe-11g

3. Run

$ docker run -d -p 49160:22 -p 49161:1521 wnameless/oracle-xe-11g
-d - Image run in detached mode exit.
-p - expose container port with mapping port.

4. Process Status

To check process status of oracle xe.
$ docker ps

5. Get VM IP Adress

$ docker-machine ls

Noted 192.168.99.100

Follow the instruction in wnameless/oracle-xe-11g respository.

6. ssh oracle-xe-11g container

Open a new terminal.
$ ssh root@192.168.99.100 -p 49160

7. Connect oralce database

 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值