This repository is used for setting up a working postgres using the official postgres docker image file.
- Postgres 11.2
- Docker 18.05.0-ce
- Docker-compose 1.21.2
- 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
- To start,
- 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'