Run Oracle with Docker on Mac

Source: Internet
Author: User

Run Oracle with Docker on Mac

1. You must use Boot2Docker to run Docker and install Boot2Docker on Mac.

1. Download the pkg installer https://github.com/boot2docker/osx-installer/releases/latest, and install it in double-click mode;
2. initialize and run it once.

Boot2docker init

3. Start. It needs to be started after each shutdown.

Boot2docker start

4. Set Environment Variables

Eval "$ (boot2docker shellinit )"

5. Verify that the configuration is complete when a message indicating success is displayed.

Docker run hello-world

6. Note: The access address is not localhost because Boot2Docker is used in Mac. Obtain the access address:

Boot2docker ip
 
2. Configure DOCKER accelerator, https://dashboard.daocloud.io/mirror according to official tutorials
 
Iii. download and use an Oracle Image

# Download an image
Docker pull alexeiled/docker-oracle-xe-11g
# Start the image as a container and name it oracle
Docker run-h "oracle" -- name "oracle"-d-p 49160: 22-p 49161: 1521-p 49162: 8080 alexeiled/docker-oracle-xe-11g
# Stop a container
Docker stop oracle
# Run at next Startup
Docker start oracle

Client Management tool connection information:
Hostname: Access address (obtained through boot2docker ip)
Port: 49161
Sid: xe
Username: system
Password: oracle
SYS password oracle
 
Connection information of the built-in web management tool:
Url: http: // access address: 49162/apex
Workspace: INTERNAL
User: ADMIN
Password: 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.