mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-23 10:15:24 +00:00
Fix and improve
This commit is contained in:
@@ -39,6 +39,15 @@ $ sudo kill -SIGUSR1 $(pidof dockerd)
|
||||
|
||||
*注意,本操作会移除所有的 Docker 本地数据,包括镜像和容器等。*
|
||||
|
||||
更安全的替代方式是优先使用以下命令进行清理:
|
||||
|
||||
```bash
|
||||
$ docker system prune
|
||||
```
|
||||
|
||||
如果你只是想“恢复出厂设置”,在 Docker Desktop 里也提供了相应入口。
|
||||
|
||||
```bash
|
||||
$ sudo rm -rf /var/lib/docker
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user