From 661438af4ae23f4d69ac9a595b12c4c1456076cb Mon Sep 17 00:00:00 2001 From: Alex Ted Date: Wed, 22 Jan 2025 11:02:14 +0300 Subject: [PATCH] feat: added docker list containers command to the diesel-async README.md to check if postgres is up and running --- databases/diesel-async/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/databases/diesel-async/README.md b/databases/diesel-async/README.md index 8eae6998..891e55b5 100644 --- a/databases/diesel-async/README.md +++ b/databases/diesel-async/README.md @@ -10,6 +10,11 @@ Basic integration of [Diesel-async](https://github.com/weiznich/diesel_async) us # on any OS docker run -d --restart unless-stopped --name postgresql -e POSTGRES_USER=test-user -e POSTGRES_PASSWORD=password -p 5432:5432 -v postgres_data:/var/lib/postgresql/data postgres:alpine ``` +make sure it has successfully started up and is running +```sh +# on any OS +docker ps --format "table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Ports}}" +``` ### Initialize PostgreSQL Database