From 15d07f42fe6568aa0cc0e62085b774e2728b8036 Mon Sep 17 00:00:00 2001 From: auraltension Date: Sun, 24 Aug 2014 11:41:42 +1000 Subject: [PATCH] change -name to --name From docker: Warning: '-name' is deprecated, it will be replaced by '--name' soon. See usage. Docker version 1.2.0, build fa7b24f --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 64cf40c..4b6d08d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ docker build -t="$USER/postgresql" . Run the postgresql image ```bash -docker run -name postgresql -d sameersbn/postgresql:latest +docker run --name postgresql -d sameersbn/postgresql:latest ``` 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. @@ -64,7 +64,7 @@ For data persistence a volume should be mounted at /var/lib/postgresql. ```bash mkdir /opt/postgresql/data -docker run -name postgresql -d \ +docker run --name postgresql -d \ -v /opt/postgresql/data:/var/lib/postgresql sameersbn/postgresql:latest ``` @@ -106,7 +106,7 @@ docker pull sameersbn/postgresql:latest - **Step 3**: Start the image ```bash -docker run -name postgresql -d [OPTIONS] sameersbn/postgresql:latest +docker run --name postgresql -d [OPTIONS] sameersbn/postgresql:latest ``` # Issues