Fix Clair config permission issue

Change config file own to clair
This commit is contained in:
yixingj 2017-11-21 17:48:48 +08:00
parent 621d93cdbc
commit ceba1fd629
2 changed files with 2 additions and 3 deletions

View File

@ -24,6 +24,4 @@ RUN chown -R 10000:10000 /clair2.0.1 \
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -sS 127.0.0.1:6061/health || exit 1
USER clair
ENTRYPOINT ["/docker-entrypoint.sh"]

View File

@ -1,4 +1,5 @@
#!/bin/bash
set -e
/dumb-init -- /clair2.0.1/clair -config /config/config.yaml
chown -R 10000:10000 /config
sudo -E -u \#10000 sh -c "/dumb-init -- /clair2.0.1/clair -config /config/config.yaml"
set +e