File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,19 @@ docker buildx build --platform linux/amd64,linux/arm64 -t nexent/nexent -f make/
1414docker 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 ` 参数表示强制执行,不需要确认
You can’t perform that action at this time.
0 commit comments