Sign inSign up

colingo/postgres

By colingo

•Updated almost 5 years ago

default port: 5432

Image
0

92

colingo/postgres repository overview

image pull下来后,配置脚本,通过下面脚本启动,用户名写密码default

shell

#!/bin/sh
WORKSPACE=$(cd `dirname $0`; pwd) 
NAME="postgres"
IMG_NAME="colingo/postgres"

CONTAINER_ID=`docker ps -a | grep $NAME | awk '{print $1}'`

cd $WORKSPACE
pwd

if [ -n "$CONTAINER_ID" ]; then
docker stop $NAME
docker rm $NAME
fi

docker run --name $NAME -p 5432:5432 -d $IMG_NAME

Tag summary

Content type

Image

Digest

Size

130.6 MB

Last updated

almost 5 years ago

docker pull colingo/postgres