From 2607164653862a1529d7c538aa71a7f8dec10c12 Mon Sep 17 00:00:00 2001 From: Misha Chornyi Date: Thu, 11 Apr 2024 16:33:25 -0700 Subject: [PATCH] Update Dockerfile configuartion. references: https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ed1998b31..9744cf449 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,10 +47,11 @@ RUN [ "$(uname -m)" != "x86_64" ] && arch="sbsa" || arch="x86_64" && \ apt-get install -y datacenter-gpu-manager=1:${DCGM_VERSION}; # Install Docker -RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ +RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && \ echo \ - "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ - $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ + $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ + tee /etc/apt/sources.list.d/docker.list > /dev/null && \ apt-get update && apt-get install -y docker-ce-cli # Install tritonclient