From 2ef7875a33f4da5ce3139fdb47f2a9d051e8953b Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Mon, 4 Aug 2014 19:31:14 +0530 Subject: [PATCH] readme: use the --format command line argument to fetch the container ip address --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ef6c536..9f75a8c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Run the postgresql image ```bash docker run -name postgresql -d sameersbn/postgresql:latest -POSTGRESQL_IP=$(docker inspect postgresql | grep IPAddress | awk -F'"' '{print $4}') +POSTGRESQL_IP=$(docker inspect --format {{.NetworkSettings.IPAddress}} postgresql) ``` By default remote logins are permitted to the postgresql server and a random password is assigned for the postgres user. The password set for the postgres user can be retrieved from the container logs.