Skip to content

benjie91/postgres-docker-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Setting up of PostgreSQL using official docker image

This repository is used for setting up a working postgres using the official postgres docker image file.

Setup

Running it

  • Pull the official image from postgres
    • docker pull postgres:11.2
  • With the docker-compose file in the same directory,
    • To start, docker-compose up -d
    • To stop, docker-compose down

Removing previous version

  • Stop the container
    • docker stop 'containerid'
  • Show all container and remove container accordingly
    • docker container ls --all
    • docker container rm 'containerid
  • Remove the image
    • docker image ls --all
    • docker image rm 'imageid'

About

PostgreSQL docker image set up

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published