#docker 容器一 oracle 11g 这个镜像构建 Oracle Database 11g Standard/Enterprise. 由于 oracle 授权的限制镜像不包含数据库,第一次运行需要先从外部目录安装 。
该镜像只是用来做开发
下载 linux.x64_11gR2_database_1of2.zip 和 linux.x64_11gR2_database_2of2.zip 并解压到同一个目录install_folder中 运行容器是会自动安装和创建数据库
docker run --privileged --name oracle11g -p 1521:1521 -v <install_folder>:/install jaspeen/oracle-11g
然后提交这个安装和配置好的容器 :
docker commit oracle11g oracle11g-installed
数据库安装在 /opt/oracle 目录
操作系统用户:
- root/install
- oracle/install
数据库用户:
- SYS/oracle
你可以映射dpdump目录来简化上传dumps :
docker run --privileged --name oracle11g -p 1521:1521 -v <install_folder>:/install -v <local_dpdump>:/opt/oracle/dpdump jaspeen/oracle-11g
要执行 impdp/expdp 运行下面的docker exec命令:
docker exec -it oracle11g impdp ..
docker save oracle11g > oracle11g.tar
docker load oracle11g.tar
registry.access.redhat.com/rhel6.7 registry.access.redhat.com/rhel7.1
解决github push错误The requested URL returned error: 403 Forbidden while accessing
[git@AYZ github01]$ git push -u origin master error: The requested URL returned error: 403 Forbidden while accessing https://github.com/iopqrst/learn20140823.git/info/refs
在要推送项目的文件目录下: vi .git/config
[remote "origin"]
url = https://github.com/iopqrst/learn20140823.git
修改为:
[remote "origin"]
url = https://[email protected]/iopqrst/learn20140823.git