Docker Offline Environment installs Oracle

Source: Internet
Author: User
Tags docker run


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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.