1.更新yum
yum update
2.安装Docker
yum install docker
安装完成后查看Docker的版本:
docker version
查看Docker的信息:
docker info
3.安装完后启动Docker
systemctl start docker.service
none /sys/fs/cgroup cgroup defaults 0 0
chkconfig docker on
docker pull wnameless/oracle-xe-11g
docker run -d -p 1521:1521 -p 8080:8080 wnameless/oracle-xe-11g
使用:docker ps a 命令查看docker容器:
开启已经存在的镜像:
docker start containerId 如上面的镜像在重新开机后重新开启:
docker start 3bf11df7b744
5.打开端口
firewall-cmd --zone=public --add-port=1521/tcp --permanent
firewall-cmd --reload
6.用PL/SQL Developer连接
Hostname: 192.168.72.100 Port: 1521 Sid: XE Username: system Password: oracle
XE = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.72.100)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = XE) ) )
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:Centos7 使用Docker搭建Oracle测试环境 - Python技术站