readme: use the --format command line argument to fetch the container ip address

This commit is contained in:
Sameer Naik
2014-08-04 19:31:14 +05:30
parent 5bb84fa18c
commit 2ef7875a33
+1 -1
View File
@@ -32,7 +32,7 @@ Run the postgresql image
```bash ```bash
docker run -name postgresql -d sameersbn/postgresql:latest 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. 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.