For testing needs, we need to build a set of Docker Oracle 11g environment for testing in the Intranet test environment, test environment installs Docker 1.7, native Windows 7 environment for Redhat 6.6, installs Docker 17.12
1. Get the Oracle image on the Windows extranet and create a new container with the Hubdocker address of wnameless/oracle-xe-11g https://hub.docker.com/r/wnameless/oracle-xe-11g/
Docker Pull wnameless/oracle-xe-11g
#新建容器test
Docker run-d-P 49170:22-p 49171:1521-h asptest-e oracle_allow_remote=true--name test wnameless/oracle-xe-11g
2, export the container, and import into the intranet environment
The difference between Docker export Test>docker-oracle-xe-11g.tar #这里注意export |save
Upload #将test. Tar to the intranet test environment
Cat Docker-oracle-xe-11g.tar |docker import-wnameless/oracle-xe-11g
#启动新容器 and map the 22 port of SSH to the 49170 port of the host and 1521 ports to 49171
Docker run-d-P 49170:22-p 49171:1521-h test-e oracle_allow_remote=true--name test wnameless/oracle-xe-11g/bin/sh-c "/usr/sbin/startup.sh &&/usr/sbin/sshd-d"
#这里注意,/bin/sh-c "/usr/sbin/startup.sh &&/usr/sbin/sshd-d", if not command, the container will start error, start.sh script to launch oracle,sshd-d to start SSH service and keep container from exiting
Docker Offline Environment installs Oracle