Skip to content

Commit dc0a591

Browse files
committed
Fix /var/run ownership
1 parent 11150aa commit dc0a591

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

8.4/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN apt-get update \
2222
postgresql-$PG_MAJOR=$PG_VERSION \
2323
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2424

25+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
26+
2527
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2628
ENV PGDATA /var/lib/postgresql/data
2729
VOLUME /var/lib/postgresql/data

9.0/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN apt-get update \
2222
postgresql-$PG_MAJOR=$PG_VERSION \
2323
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2424

25+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
26+
2527
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2628
ENV PGDATA /var/lib/postgresql/data
2729
VOLUME /var/lib/postgresql/data

9.1/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN apt-get update \
2222
postgresql-$PG_MAJOR=$PG_VERSION \
2323
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2424

25+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
26+
2527
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2628
ENV PGDATA /var/lib/postgresql/data
2729
VOLUME /var/lib/postgresql/data

9.2/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN apt-get update \
2222
postgresql-$PG_MAJOR=$PG_VERSION \
2323
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2424

25+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
26+
2527
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2628
ENV PGDATA /var/lib/postgresql/data
2729
VOLUME /var/lib/postgresql/data

9.3/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN apt-get update \
2222
postgresql-$PG_MAJOR=$PG_VERSION \
2323
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2424

25+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
26+
2527
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2628
ENV PGDATA /var/lib/postgresql/data
2729
VOLUME /var/lib/postgresql/data

9.4/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN apt-get update \
2222
postgresql-$PG_MAJOR=$PG_VERSION \
2323
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2424

25+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
26+
2527
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2628
ENV PGDATA /var/lib/postgresql/data
2729
VOLUME /var/lib/postgresql/data

Dockerfile.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ RUN apt-get update \
2323
postgresql-$PG_MAJOR=$PG_VERSION \
2424
postgresql-contrib-$PG_MAJOR=$PG_VERSION
2525

26+
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql
27+
2628
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
2729
ENV PGDATA /var/lib/postgresql/data
2830
VOLUME /var/lib/postgresql/data

0 commit comments

Comments
 (0)