Lightweight Windows images for PostgreSQL 17, 18
2.3K
This repository contains the Dockerfile and entrypoint script to build a Docker image for PostgreSQL running on Windows containers.
To build and run the Docker image, follow these steps:
Build the Image:
docker build -t postgres-windows -f Dockerfile.nanoserver-ltsc2025 .
Run the Container:
docker run -d -p 5432:5432 --isolation process postgres-windows
Note
Running the container with `--isolation process` is recommended to avoid shared memory issues.
POSTGRES_DB: The name of the default database to create. Defaults to postgres.POSTGRES_USER: The username for the PostgreSQL database. Defaults to postgres.POSTGRES_PASSWORD: The password for the PostgreSQL database. Defaults to POSTGRES_USER's value.To persist data, you can mount a volume to the PostgreSQL data directory:
docker run -d -p 5432:5432 -v "$(pwd)/data:c:/pgsql/data" --isolation process postgres-windows
Content type
Image
Digest
sha256:9952357af…
Size
780 MB
Last updated
12 months ago
docker pull innovesys/postgresql-windows