From 0af4e3a41dd1234fca73d289c8c436a92cac4271 Mon Sep 17 00:00:00 2001 From: yixingj Date: Thu, 23 Nov 2017 20:03:57 +0800 Subject: [PATCH] Fix clair permission issue Clair will call bzr, without -H in sudo it will usr root user's Home envrionment. --- make/photon/clair/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/photon/clair/docker-entrypoint.sh b/make/photon/clair/docker-entrypoint.sh index d028b79e3..56f3affc1 100644 --- a/make/photon/clair/docker-entrypoint.sh +++ b/make/photon/clair/docker-entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/bash set -e chown -R 10000:10000 /config -sudo -E -u \#10000 sh -c "/dumb-init -- /clair2.0.1/clair -config /config/config.yaml" +sudo -E -H -u \#10000 sh -c "/dumb-init -- /clair2.0.1/clair -config /config/config.yaml" set +e