Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

Version Infomation

Container OS

sh-4.1# cat /etc/redhat-release    
CentOS release 6.5 (Final)

root password : docker123

openssh

sh-4.1# rpm -qa | grep ^openssh
openssh-5.3p1-94.el6.x86_64
openssh-server-5.3p1-94.el6.x86_64

DB Version

PostgreSQL 9.4.8 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16), 64-bit

Usage

docker pull bonoyoon/centos65_postgres94

Run

ex)

docker run -h dev01 --name cent6_pg94 -p 6432:5432 -p 22000:22  bonoyoon/centos65_postgres94

-h dev01 user_defined hostname
-name cent6_pg94 user_defined container name
-p 6432 :5432 6432 user_defined port for Postgres connecting
-p 22000 :22 22000 user_defined port for ssh connecting

Connecting Container

1) docker connecting

①As root

PS C:\Users\BONO> docker exec -it cent6_pg94 bash
bash-4.1# id
uid=0(root) gid=0(root) groups=0(root)

➁As postgres User

PS C:\Users\BONO> docker exec -it cent6_pg94 bash
bash-4.1# id
uid=0(root) gid=0(root) groups=0(root)

2) Putty connecting
hostname : your hostname
Port : 22000

login : root
password : docker123

Postgres Server

1) Server start or stop

su - postgres
pg_ctl start -D /var/lib/pgsql/9.4/data
pg_ctl stop  -D /var/lib/pgsql/9.4/data

2) remote connect
ex)

psql -h bono-pc -p 6432 -d postgres -U postgres

-h your hostname

Docker Pull Command
Owner
bonoyoon

Comments (0)