From f30ec59e3622e9900b3140dec47d604c252f5d72 Mon Sep 17 00:00:00 2001 From: Vladislav Belogrudov Date: Tue, 11 Aug 2015 16:44:51 +0300 Subject: [PATCH] Glance source based containers cannot write to /var/log/glance Glance services fail when trying to send log messages to /var/log/glance because the folder has wrong ownership. Change-Id: Ic3878341e83564278f7eac418bd9ed9be90c929f Closes-Bug: #1483747 --- docker/centos/source/glance/glance-base/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/centos/source/glance/glance-base/Dockerfile b/docker/centos/source/glance/glance-base/Dockerfile index 084bcf77ea..b2a41c49a9 100644 --- a/docker/centos/source/glance/glance-base/Dockerfile +++ b/docker/centos/source/glance/glance-base/Dockerfile @@ -10,6 +10,7 @@ RUN cd /glance \ && pip install /glance \ && mkdir /etc/glance /var/log/glance \ && cp -r /glance/etc/* /etc/glance/ \ + && chown -R glance: /etc/glance /var/log/glance \ && rm -rf /root/.cache CMD ["/start.sh"]