Mac下用Docker運行Oracle

來源:互聯網
上載者:User

Mac下用Docker運行Oracle

一、Mac下需要藉助Boot2Docker才能運行Docker,安裝Boot2Docker

1.下載pkg格式安裝器https://github.com/boot2docker/osx-installer/releases/latest,雙擊安裝即可;
2.初始化,運行一次即可 
 
boot2docker init

3.啟動,每次關機後需要啟動 
 
boot2docker start

4.設定環境變數
 
eval "$(boot2docker shellinit)"

5.驗證一下,提示成功資訊就配置完了
 
docker run hello-world

6.注意事項,Mac下由於藉助Boot2Docker運行,所以訪問地址不是localhost。擷取訪問地址:
 
boot2docker ip
 
二、按照官方教程配置DOCKER加速器,https://dashboard.daocloud.io/mirror
 
三、下載使用Oracle鏡像
 
#下載鏡像
docker pull alexeiled/docker-oracle-xe-11g
#啟動鏡像為一個容器,並命名為oracle
docker run -h "oracle" --name "oracle" -d -p 49160:22 -p 49161:1521 -p 49162:8080 alexeiled/docker-oracle-xe-11g
#停止容器
docker stop oracle
#下次啟動時可以運行
docker start oracle
 
用戶端管理工具串連資訊:
hostname: 訪問地址(通過boot2docker ip擷取)
port: 49161
sid: xe
username: system
password: oracle
SYS的密碼oracle
 
內建的web端管理工具串連資訊:
url:http://訪問地址:49162/apex
workspace:INTERNAL
user:ADMIN
password:oracle

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.