Postgres image mirror from https://hub.docker.com/_/postgres
cf. Github repository: https://github.com/docker-library/docs/tree/master/postgres
Hosted on GitHub Container Registry (ghcr.io) to avoid DockerHub pull limitations, and easily deploy on clusters (such as Kubernetes).
The image on ghcr.io is automatically updated every week (Monday at 3:00 GMT+1) by a GitHub Actions workflow to match the latest tag of Postgres
docker run -it -v $(pwd):/root ghcr.io/maastrichtu-library/postgres:latestIn the container:
- User, with
sudoprivileges:root - Workspace path:
/root
Set entrypoint to tail -f /dev/null to keep it hanging as a service.
docker run -it --entrypoint tail -v $(pwd):/root ghcr.io/maastrichtu-library/postgres:latest -f /dev/nullFeel free to edit the Dockerfile to install additional packages in the image.
docker build -t ghcr.io/maastrichtu-library/postgres:latest .docker push ghcr.io/maastrichtu-library/postgres:latest