Skip to content

Commit 15d07f4

Browse files
committed
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
1 parent dc4d396 commit 15d07f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ docker build -t="$USER/postgresql" .
3131
Run the postgresql image
3232

3333
```bash
34-
docker run -name postgresql -d sameersbn/postgresql:latest
34+
docker run --name postgresql -d sameersbn/postgresql:latest
3535
```
3636

3737
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.
6464

6565
```bash
6666
mkdir /opt/postgresql/data
67-
docker run -name postgresql -d \
67+
docker run --name postgresql -d \
6868
-v /opt/postgresql/data:/var/lib/postgresql sameersbn/postgresql:latest
6969
```
7070

@@ -106,7 +106,7 @@ docker pull sameersbn/postgresql:latest
106106
- **Step 3**: Start the image
107107

108108
```bash
109-
docker run -name postgresql -d [OPTIONS] sameersbn/postgresql:latest
109+
docker run --name postgresql -d [OPTIONS] sameersbn/postgresql:latest
110110
```
111111

112112
# Issues

0 commit comments

Comments
 (0)