Skip to content

Commit da14585

Browse files
committed
🔨 Fix build workflow
1 parent fe825dd commit da14585

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

make/MAKE.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,19 @@ docker buildx build --platform linux/amd64,linux/arm64 -t nexent/nexent -f make/
1414
docker buildx build --platform linux/amd64,linux/arm64 -t nexent/nexent-data-process -f make/dataprocess/Dockerfile . --push
1515
```
1616

17+
### Clean up Docker resources
18+
19+
```bash
20+
# Clean up Docker build cache and unused resources
21+
docker builder prune -f && docker system prune -f
22+
```
23+
1724
注意:
1825
- 使用 `--platform linux/amd64,linux/arm64` 参数来指定目标架构
1926
- `--push` 参数会自动将构建好的镜像推送到 Docker Hub
2027
- 确保已经登录到 Docker Hub (`docker login`)
21-
- 如果遇到构建错误,可能需要确保 Docker 的 buildx 功能已启用
28+
- 如果遇到构建错误,可能需要确保 Docker 的 buildx 功能已启用
29+
- 清理命令说明:
30+
- `docker builder prune -f`: 清理构建缓存
31+
- `docker system prune -f`: 清理未使用的数据(包括悬空镜像、网络等)
32+
- `-f` 参数表示强制执行,不需要确认

0 commit comments

Comments
 (0)