From d377cbe6c088026d5b5433e1e06c4bb6a14ade8e Mon Sep 17 00:00:00 2001 From: whp98 <32877126+whp98@users.noreply.github.com> Date: Tue, 22 Oct 2024 17:27:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=8D=9A=E5=AE=A2=EF=BC=8C?= =?UTF-8?q?=E6=97=B6=E9=97=B4:2024/10/22=2017:27:51?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...47\247\273docker\347\233\256\345\275\225.md" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git "a/docs/Linux\347\263\273\347\273\237/\350\277\201\347\247\273docker\347\233\256\345\275\225.md" "b/docs/Linux\347\263\273\347\273\237/\350\277\201\347\247\273docker\347\233\256\345\275\225.md" index 0e4d1e568..07300ae84 100644 --- "a/docs/Linux\347\263\273\347\273\237/\350\277\201\347\247\273docker\347\233\256\345\275\225.md" +++ "b/docs/Linux\347\263\273\347\273\237/\350\277\201\347\247\273docker\347\233\256\345\275\225.md" @@ -40,4 +40,21 @@ sudo vim /etc/docker/daemon.json ```shell sudo systemctl daemon-reload sudo systemctl restart docker +``` + +6.验证结果 + +```shell +docker info | grep root +docker ps +``` + +```shell + Docker Root Dir: /home/docker_lib +``` + +7.删除旧目录 + +```shell +sudo rm /var/lib/docker/ -rf ``` \ No newline at end of file