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