diff --git a/script/docker-entrypoint.sh b/script/docker-entrypoint.sh index e93e56306..af87ef80b 100755 --- a/script/docker-entrypoint.sh +++ b/script/docker-entrypoint.sh @@ -14,8 +14,10 @@ if [ "$(id -u)" = '0' ]; then setcap "$PCAP" "$binary" fi - chown "${PUID}:${PGID}" "${HOME}" \ - && exec su-exec "${PUID}:${PGID}" \ + # Chown may fail, which may cause us to be unable to start; but maybe + # it'll work anyway, so we let the error slide. + chown "${PUID}:${PGID}" "${HOME}" || true + exec su-exec "${PUID}:${PGID}" \ env HOME="$HOME" "$@" else exec "$@"