安装Docker到Mac电脑

先从官方网站下载Mac版的Docker安装包,安装到系统后,启动Docker。

https://hub.docker.com/editions/community/docker-ce-desktop-mac

设置镜像站点,否则很慢的,点击Docker图标,选取“Preferences-》Docker Engine”,将如下的“registry-mirrors”部分内容加入,然后应用。

{
  ...
  "registry-mirrors": [
    "https://registry.docker-cn.com",
    "http://hub-mirror.c.163.com",
    "https://docker.mirrors.ustc.edu.cn"
  ]
}

安装Oracle XE 11g

docker run -d --name oracle-xe-11g  --shm-size=2g -p 1521:1521 -p 8080:8080  alexeiled/docker-oracle-xe-11g

启动后打开浏览器查看

http://localhost:8080/apex
workspace: internal
user: admin
password: oracle

在docker容器中查看

$ docker exec -ti oracle-xe-11g su - oracle
oracle@e1dd1be0f514:~$ sqlplus system/oracle

SQL*Plus: Release 11.2.0.2.0 Production on Sat Mar 13 11:29:05 2021

Copyright (c) 1982, 2011, Oracle.  All rights reserved.

ERROR:
ORA-28002: the password will expire within 7 days


Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

SQL> 

[ 编辑 | 历史 ]
最近由“jilili”在“2021-03-13 11:37:44”修改