#安装ORACLE
docker search oracle
docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g && docker images
mkdir -p /home/oracle/app/oracle/oradata
mkdir -p /home/oracle/app/oracle/product/11.2.0/dbhome_2
docker run -d -it -p 1521:1521
–name oracle
–restart=always
–mount source=oracle_vol,target=/home/oracle/app/oracle/oradata registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g
docker exec -it oracle bash
su root
###密码:helowin
mkdir -p /home/oracle/app/oracle/oradata
mkdir -p /home/oracle/app/oracle/product/11.2.0/dbhome_2
#不会VI命令百度
vi /etc/profile
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export ORACLE_SID=helowin
export PATH= O R A C L E H O M E / b i n : ORACLE_HOME/bin: ORACLEHOME/bin:PATH
source /etc/profile
#不会VI命令百度
vi /home/oracle/.bashrc
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
export ORACLE_SID=helowin
export PATH= O R A