This commit is contained in:
@@ -102,4 +102,26 @@ git reset --hard origin/main
|
||||
D:\esptool-v5.2.0-windows-amd64\esptool.exe --chip esp32s3 --port [ESP32-S3 设备所对应的串口 e.g.:COM3] erase_flash
|
||||
```
|
||||
|
||||
显示 `Flash memory erased successfully` 后,你就可以像对待一块全新的 ESP32-S3 一样,用常规方法刷写任何其他固件了。
|
||||
显示 `Flash memory erased successfully` 后,你就可以像对待一块全新的 ESP32-S3 一样,用常规方法刷写任何其他固件了。
|
||||
|
||||
## Docker Compose 限制容器的资源使用
|
||||
|
||||
运用 compose 组件可限制容器的资源使用,以下是示例:
|
||||
|
||||
``` yaml title="docker-compose.yml"
|
||||
services:
|
||||
<service_name>:
|
||||
image: <image_path>
|
||||
# 可用的 CPU 数
|
||||
cpus: 1
|
||||
# 内存大小限制
|
||||
mem_limit: 1G
|
||||
```
|
||||
|
||||
在以上示例中,容器的 CPU 使用数限制在1个,内存使用限制在1G。
|
||||
|
||||
### 参考
|
||||
|
||||
[如何在 docker compose file 中限制系統資源的使用 - Zen's Blog](https://www.zenwen.tw/docker-compose-file-limit-resource)
|
||||
|
||||
[Define services in Docker Compose - Docker Docs](https://docs.docker.com/reference/compose-file/services)
|
||||
Reference in New Issue
Block a user