From e1eafbc516ec9c2fc6f237b575f5ccff6d421e32 Mon Sep 17 00:00:00 2001 From: Gabriel Monroy Date: Mon, 14 Apr 2014 14:59:33 -0600 Subject: [PATCH] fix(registry): chown /data for data container --- registry/bin/boot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/registry/bin/boot b/registry/bin/boot index 031d5bbd9a..1f4fc5ac1b 100755 --- a/registry/bin/boot +++ b/registry/bin/boot @@ -39,6 +39,9 @@ until confd -onetime -node $ETCD -config-file /app/confd.toml; do sleep $(($ETCD_TTL/2)) # sleep for half the TTL done +# reset filesystem permissions for data container +test -d /data && chown registry:registry /data + # spawn the service in the background cd /docker-registry ./setup-configs.sh