创建docker-compose工作目录
mkdir -p oracle/data
cd oracle
touch docker-compose.yml
配置docker-compose.yml
version: '2'
services:
oracle:
image: sath89/oracle-xe-11g
container_name: oracle
ports:
- 1521:1521
volumes:
- ./data:/u01/app/oracle
启动容器
#启动oracle
docker-compose up -d
#关闭容器
docker-compose down
登录oracle
SID: xe
username: system
password: oracle