Skip to content

valueshimoda/docker-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

docker-postgres

Build image

$ cd 9.0 && sudo docker build -t shimoda/postgresql-9.0:v1 .

Run image

$ sudo docker run --name my-postgresql-9.0 -e POSTGRES_PASSWORD=password -d shimoda/postgresql-9.0:v1

Check IP address

$ sudo docker inspect my-postgresql-9.0|grep IPAddress

            "SecondaryIPAddresses": null,
            "IPAddress": "172.17.0.2",
                    "IPAddress": "172.17.0.2",

Access Postgres using psql

$ psql -h 172.17.0.2 -u postgres

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages