From 28b5ea3c0940c1257f886224a751204087fc4581 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Mon, 16 Oct 2023 14:21:09 -0700 Subject: [PATCH] fix: set safe.directory in Dockerfile (#571) to avoid dubious ownership warning for git --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9c36636a42d0..17f56a171cf1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,10 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* +# Disable safe directory in docker +# Context: https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9 +RUN git config --system --add safe.directory "*" + # Make link to libnvidia-ml.so (NVML) library # so that we could get GPU stats. RUN ln -s /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 \