From 91a9673c8a1488101b06d01aefd5656b129aca43 Mon Sep 17 00:00:00 2001 From: newrain001 Date: Mon, 22 Jan 2024 11:51:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'os/get-docker-latest.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- os/get-docker-latest.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/os/get-docker-latest.sh b/os/get-docker-latest.sh index 1e1e2df..f996a85 100644 --- a/os/get-docker-latest.sh +++ b/os/get-docker-latest.sh @@ -17,9 +17,15 @@ install(){ mkdir -p /etc/docker color Success "安装完成" color Info "开始配置镜像加速器" - tee /etc/docker/daemon.json <<-'EOF' + sudo tee /etc/docker/daemon.json <<-'EOF' { - "registry-mirrors": ["https://pilvpemn.mirror.aliyuncs.com"] + "registry-mirrors": ["https://pilvpemn.mirror.aliyuncs.com"], + "exec-opts": ["native.cgroupdriver=systemd"], + "log-driver": "json-file", + "log-opts": { + "max-size": "100m" + }, + "storage-driver": "overlay2" } EOF cat >> /etc/sysctl.conf <