Skip to content

Commit 3230aaf

Browse files
author
Sameer Naik
committed
release 9.4
1 parent afdf196 commit 3230aaf

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
**latest**
3+
**9.4**
44
- postgresql: upgrade to 9.4
55

66
**9.1-2**

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ In your issue report please make sure you provide the following information:
5858
Pull the latest version of the image from the docker index. This is the recommended method of installation as it is easier to update image in the future. These builds are performed by the **Docker Trusted Build** service.
5959

6060
```bash
61-
docker pull sameersbn/postgresql:9.1-2
61+
docker pull sameersbn/postgresql:9.4
6262
```
6363

6464
Alternately you can build the image yourself.
@@ -74,14 +74,14 @@ docker build -t="$USER/postgresql" .
7474
Run the postgresql image
7575

7676
```bash
77-
docker run --name postgresql -d sameersbn/postgresql:9.1-2
77+
docker run --name postgresql -d sameersbn/postgresql:9.4
7878
```
7979

8080
The simplest way to login to the postgresql container as the administrative `postgres` user is to use the `--volumes-from` docker option to connect to the postgresql server over the unix socket.
8181

8282
```bash
8383
docker run -it --rm --volumes-from=postgresql \
84-
sameersbn/postgresql:9.1-2 sudo -u postgres -H psql
84+
sameersbn/postgresql:9.4 sudo -u postgres -H psql
8585
```
8686

8787
Alternately you can fetch the password set for the `postgres` user from the container logs.
@@ -117,7 +117,7 @@ To create a new user you should specify the `DB_USER` and `DB_PASS` variables. T
117117
```bash
118118
docker run --name postgresql -d \
119119
-e 'DB_USER=dbuser' -e 'DB_PASS=dbpass' \
120-
sameersbn/postgresql:9.1-2
120+
sameersbn/postgresql:9.4
121121
```
122122

123123
**NOTE**
@@ -128,10 +128,10 @@ Similarly, you can also create a new database by specifying the database name in
128128

129129
```bash
130130
docker run --name postgresql -d \
131-
-e 'DB_NAME=dbname' sameersbn/postgresql:9.1-2
131+
-e 'DB_NAME=dbname' sameersbn/postgresql:9.4
132132
```
133133

134-
You may also specify a comma separated list of database names in the `DB_NAME` variable. The following command creates two new databases named *dbname1* and *dbname2 (p.s. this feature is only available in releases greater than 9.1-2)*
134+
You may also specify a comma separated list of database names in the `DB_NAME` variable. The following command creates two new databases named *dbname1* and *dbname2 (p.s. this feature is only available in releases greater than 9.4)*
135135

136136
```bash
137137
docker run --name postgresql -d \
@@ -145,7 +145,7 @@ For example,
145145
```bash
146146
docker run --name postgresql -d \
147147
-e 'DB_USER=dbuser' -e 'DB_PASS=dbpass' -e 'DB_NAME=dbname' \
148-
sameersbn/postgresql:9.1-2
148+
sameersbn/postgresql:9.4
149149
```
150150

151151
, will create a user *dbuser* with the password *dbpass*. It will also create a database named *dbname* and the *dbuser* user will have full access to the *dbname* database.
@@ -167,7 +167,7 @@ The updated run command looks like this.
167167

168168
```bash
169169
docker run --name postgresql -d \
170-
-v /opt/postgresql/data:/var/lib/postgresql sameersbn/postgresql:9.1-2
170+
-v /opt/postgresql/data:/var/lib/postgresql sameersbn/postgresql:9.4
171171
```
172172

173173
This will make sure that the data stored in the database is not lost when the image is stopped and started again.
@@ -229,11 +229,11 @@ docker stop postgresql
229229
- **Step 2**: Update the docker image.
230230

231231
```bash
232-
docker pull sameersbn/postgresql:9.1-2
232+
docker pull sameersbn/postgresql:9.4
233233
```
234234

235235
- **Step 3**: Start the image
236236

237237
```bash
238-
docker run --name postgresql -d [OPTIONS] sameersbn/postgresql:9.1-2
238+
docker run --name postgresql -d [OPTIONS] sameersbn/postgresql:9.4
239239
```

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.1
1+
9.4

0 commit comments

Comments
 (0)