Skip to content

Commit

Permalink
Add workaround for AUFS backend issue with postgresql
Browse files Browse the repository at this point in the history
PostgreSQL may fail at startup with /etc/ssl/private/ssl-cert-snakeoil.key
permission denied.

This is due to a limitation of the AUFS backend which can be worked
around by recreating the /etc/ssl/private directory.

Ref to gavodachs/docker-dachs#1 for
the actual bug and moby/moby#783 for
more details on the AUFS issue.

Change-Id: I0afe01e880f4ace4a38d3751a8c621c97d97d658
  • Loading branch information
guillon committed Aug 18, 2016
1 parent 3fc1113 commit 4f590a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get install -y lava-tool lava-dispatcher lava-coordinator && \
apt-get install -y apache2

# Fix for AUFS bug on permissions, ref to https://github.com/docker/docker/issues/783
# Which causes postgres to fail: ref to https://github.com/chbrandt/docker-dachs/issues/1
# We simply move back and forth the /etc/ssl/private dir
RUN mv /etc/ssl/private /etc/ssl/private.fixaufs && mv /etc/ssl/private.fixaufs /etc/ssl/private

RUN service postgresql start && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get install -y lava-server && \
Expand Down

0 comments on commit 4f590a3

Please sign in to comment.