mirror of
https://github.com/10h30/lookbusy-docker.git
synced 2026-05-12 15:21:21 +09:00
Update README.md
This commit is contained in:
@@ -12,23 +12,15 @@ Clone this project into your folder, then run
|
|||||||
docker build . -t lookbusy
|
docker build . -t lookbusy
|
||||||
```
|
```
|
||||||
|
|
||||||
### Update parameters
|
### Deploy using Docker Run
|
||||||
|
|
||||||
You can update the parameters in the file start.sh, refer to the following
|
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
lookbusy -c 50 # 占用所有 CPU 核心各 50%
|
docker run -d --name lookbusy --restart=always -v ./start.sh:/app/start.sh lookbusy
|
||||||
lookbusy -c 50 -n 2 # 占用两个 CPU 核心各 50%
|
|
||||||
lookbusy -c 50-80 -r curve # 占用所有 CPU 核心在 50%-80% 左右浮动
|
|
||||||
lookbusy -c 0 -m 128MB -M 1000 # 每 1000 毫秒,循环释放并分配 128MB 内存
|
|
||||||
lookbusy -c 0 -d 1GB -b 1MB -D 10 # 每 10 毫秒,循环进行 1MB 磁盘写入,临时文件不超过 1GB
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Source: https://51.ruyo.net/18289.html
|
|
||||||
|
|
||||||
### Deploy
|
### Deploy using Docker Compose
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
docker run -d --name lookbusy --restart=always -v /PATH/TO/start.sh:/app/start.sh lookbusy
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user