obsidian-notes/系统/Openwrt/Docker扩容.md
CSSC-WORK\murmur 3e6078442b init version
2024-04-15 11:19:57 +08:00

25 lines
533 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Docker扩容
updated: 2022-05-24 00:53:01Z
created: 2022-01-08 13:18:07Z
---
选择好uuid后勾选启用此挂载点在挂载点里面选择成作为外部overlay使用然后点保存并应用。
重启软路由之后就能看到软件包和docker的安装空间都变大了。
扩容
1. 挂载扩容盘到/mnt/sdb1
```shell
mount /dev/sdb1 /mnt/sdb1
```
2. 复制配置文件,
```shell
cp -r /overlay/* /mnt/sdb1
```
3. 添加开机自动挂载
```shell
vi etc/rc.local
mount /dev/sdb1 /overlay
```