From 38fe91737404ad84e54fb1ab67e2e32500135ef8 Mon Sep 17 00:00:00 2001 From: Abe Tomoaki Date: Wed, 25 Mar 2026 09:03:44 +0900 Subject: [PATCH] docs: Update the usage instructions with the latest information * `docker run -d groonga/pgroonga` failed to start due to an error. * The error was caused by the missing POSTGRES_PASSWORD setting, so add it. * Use `docker container run` instead of `docker run` * Add `--rm` to ensure that no containers remain after running. * About Docker Comose * Currently, using `compose.yaml` * Do not specify `version`. * Use the command `docker compose` --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f85054e..3004fc0 100644 --- a/README.md +++ b/README.md @@ -682,17 +682,16 @@ Those images based on [postgres](https://hub.docker.com/_/postgres) and could us ## Quick start ```shell - docker run -d groonga/pgroonga +docker container run --rm --detach --env POSTGRES_PASSWORD="Please-set-a-password" groonga/pgroonga ``` ## How to use Here is a simple example for use by [docker-compose](https://github.com/docker/compose). -Create `docker-compose.yml` with lines below. +Create `compose.yaml` with lines below. ```docker-compose -version: '2' services: PGroonga: image: groonga/pgroonga:latest @@ -704,7 +703,7 @@ services: POSTGRES_USER: PGroonga ``` -now You can use `docker-compose up -d` command to start service. +now You can use `docker compose up -d` command to start service. by use any database manage tool to connect to database `PGroonga`,exceute command below to active PGroonga extension ```SQL