命令:docker images
然后运行镜像:docker run -d -p 1521:1521 --name oracle registry.aliyuncs.com/helowin/oracle_11g
命令:docker exec -it oracle bash
直接退出:exit
添加内容:
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export ORACLE_SID=helowin
export PATH=$ORACLE_HOME/bin:$PATH
注意:按i进入编辑模式,输入上述命令后,按ESC键退出编辑模式,再输入:wq保存退出
以上为本人自己记录的笔记,参考文章地址:https://blog.csdn.net/u014069688/article/details/100533501
原文:https://www.cnblogs.com/pingpinghua/p/12191054.html