Merge pull request #3682 from yixingjia/fixclairpermission

Fix clair permission issue
This commit is contained in:
yixingjia 2017-11-25 21:51:59 +08:00 committed by GitHub
commit 97c26f04e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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