From 616308bcbf1c207f9d746e3de529112732e04a7d Mon Sep 17 00:00:00 2001 From: set Date: Mon, 23 Oct 2023 07:11:16 +0800 Subject: [PATCH] fix: resolve the sudo problem. --- Jupyter Lab/Alpine-NonRoot/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jupyter Lab/Alpine-NonRoot/Dockerfile b/Jupyter Lab/Alpine-NonRoot/Dockerfile index e03f735..091d940 100644 --- a/Jupyter Lab/Alpine-NonRoot/Dockerfile +++ b/Jupyter Lab/Alpine-NonRoot/Dockerfile @@ -12,7 +12,7 @@ RUN \ RUN \ addgroup notebook &&\ adduser -Ss /bin/bash -g notebook notebook &&\ - adduser notebook sudo &&\ + echo "notebook ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ echo "notebook:123456" | chpasswd &&\ chown -R notebook:notebook . &&\ mkdir /data &&\