install docker(with oracle 11g)
docker위에 오라클 설치하고 간단하게 테스트
2. install docker
[root@localhost ~]# yum install docker
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: data.aonenetworks.kr
* epel: fedora.cs.nctu.edu.tw
* extras: data.aonenetworks.kr
* updates: data.aonenetworks.kr
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.13.1-96.gitb2f74b2.el7.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================
Installing:
docker x86_64 2:1.13.1-96.gitb2f74b2.el7.centos extras 18 M
Transaction Summary
==================================================================================================================================
Install 1 Package
Total download size: 18 M
Installed size: 65 M
Is this ok [y/d/N]: y
Downloading packages:
docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64.rpm | 18 MB 00:00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64 1/1
Verifying : 2:docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64 1/1
Installed:
docker.x86_64 2:1.13.1-96.gitb2f74b2.el7.centos
Complete!
[root@localhost ~]#
3. start docker
[root@localhost ~]# service docker start
Redirecting to /bin/systemctl start docker.service
[root@localhost ~]#
3. install oracle 11g
[root@localhost ~]# docker pull oracleinanutshell/oracle-xe-11g
Using default tag: latest
Trying to pull repository docker.io/oracleinanutshell/oracle-xe-11g ...
latest: Pulling from docker.io/oracleinanutshell/oracle-xe-11g
Digest: sha256:8b740e77d4b90add693fedb22938f340821e89665fb58ecaeeb0dace853b9ee5
Status: Image is up to date for docker.io/oracleinanutshell/oracle-xe-11g:latest
[root@localhost ~]# docker run -d -p 49161:1521 oracleinanutshell/oracle-xe-11g
ea48084998a04308e916449b2493c8358c05d6ae7be0ff3fca8d95a55edf5c51
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ea48084998a0 oracleinanutshell/oracle-xe-11g "/bin/sh -c '/usr/..." 36 seconds ago Up 34 seconds 22/tcp, 8080/tcp, 0.0.0.0:49161->1521/tcp keen_archimedes
[root@localhost ~]#
#### sid/pw etc ####
hostname: localhost
port: 49161
sid: xe
username: system
password: oracle
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ea48084998a0 oracleinanutshell/oracle-xe-11g "/bin/sh -c '/usr/..." 36 seconds ago Up 34 seconds 22/tcp, 8080/tcp, 0.0.0.0:49161->1521/tcp keen_archimedes
[root@localhost ~]# docker pause ea48084998a0
ea48084998a0
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ea48084998a0 oracleinanutshell/oracle-xe-11g "/bin/sh -c '/usr/..." 9 minutes ago Up 9 minutes (Paused) 22/tcp, 8080/tcp, 0.0.0.0:49161->1521/tcp keen_archimedes
[root@localhost ~]# docker unpause ea48084998a0
ea48084998a0
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ea48084998a0 oracleinanutshell/oracle-xe-11g "/bin/sh -c '/usr/..." 9 minutes ago Up 9 minutes 22/tcp, 8080/tcp, 0.0.0.0:49161->1521/tcp keen_archimedes
[root@localhost ~]#
1. 환경준비
Centos 7.x
[root@localhost ~]# yum install docker
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: data.aonenetworks.kr
* epel: fedora.cs.nctu.edu.tw
* extras: data.aonenetworks.kr
* updates: data.aonenetworks.kr
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.13.1-96.gitb2f74b2.el7.centos will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================
Installing:
docker x86_64 2:1.13.1-96.gitb2f74b2.el7.centos extras 18 M
Transaction Summary
==================================================================================================================================
Install 1 Package
Total download size: 18 M
Installed size: 65 M
Is this ok [y/d/N]: y
Downloading packages:
docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64.rpm | 18 MB 00:00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64 1/1
Verifying : 2:docker-1.13.1-96.gitb2f74b2.el7.centos.x86_64 1/1
Installed:
docker.x86_64 2:1.13.1-96.gitb2f74b2.el7.centos
Complete!
[root@localhost ~]#
3. start docker
[root@localhost ~]# service docker start
Redirecting to /bin/systemctl start docker.service
[root@localhost ~]#
3. install oracle 11g
[root@localhost ~]# docker pull oracleinanutshell/oracle-xe-11g
Using default tag: latest
Trying to pull repository docker.io/oracleinanutshell/oracle-xe-11g ...
latest: Pulling from docker.io/oracleinanutshell/oracle-xe-11g
Digest: sha256:8b740e77d4b90add693fedb22938f340821e89665fb58ecaeeb0dace853b9ee5
Status: Image is up to date for docker.io/oracleinanutshell/oracle-xe-11g:latest
[root@localhost ~]# docker run -d -p 49161:1521 oracleinanutshell/oracle-xe-11g
ea48084998a04308e916449b2493c8358c05d6ae7be0ff3fca8d95a55edf5c51
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ea48084998a0 oracleinanutshell/oracle-xe-11g "/bin/sh -c '/usr/..." 36 seconds ago Up 34 seconds 22/tcp, 8080/tcp, 0.0.0.0:49161->1521/tcp keen_archimedes
[root@localhost ~]#
#### sid/pw etc ####
hostname: localhost
port: 49161
sid: xe
username: system
password: oracle
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ea48084998a0 oracleinanutshell/oracle-xe-11g "/bin/sh -c '/usr/..." 36 seconds ago Up 34 seconds 22/tcp, 8080/tcp, 0.0.0.0:49161->1521/tcp keen_archimedes
[root@localhost ~]# docker pause ea48084998a0
ea48084998a0
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ea48084998a0 oracleinanutshell/oracle-xe-11g "/bin/sh -c '/usr/..." 9 minutes ago Up 9 minutes (Paused) 22/tcp, 8080/tcp, 0.0.0.0:49161->1521/tcp keen_archimedes
[root@localhost ~]# docker unpause ea48084998a0
ea48084998a0
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ea48084998a0 oracleinanutshell/oracle-xe-11g "/bin/sh -c '/usr/..." 9 minutes ago Up 9 minutes 22/tcp, 8080/tcp, 0.0.0.0:49161->1521/tcp keen_archimedes
[root@localhost ~]#
댓글
댓글 쓰기