generated fromyanyongyu/python-poetry-template
Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
nonebot/cli-plugin-docker
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
在使用本插件前请确保 Docker CLI 以及 Docker Compose Plugin 已经安装,且可以从命令行直接使用。
详细安装方法请参考Docker 文档
Docker 官方 Linux 快速安装一键脚本:
curl -fsSL https://get.docker.com| sudo sh首先需要安装 uv。
直接使用:
uvx --from nb-cli --with nb-cli-plugin-docker nb docker# 或uv tool run --from nb-cli --with nb-cli-plugin-docker nb docker安装:
uv tool install --with nb-cli-plugin-docker nb-cli# 更新环境变量(如果需要)uv tool update-shellnb self install nb-cli-plugin-docker
nb docker# 其他别名# nb deploy# nb compose
生成Dockerfile 和docker-compose.yml。
- 在项目中首次使用本插件时;
- 更换了机器人项目的管理器时。
对于使用了uv,pdm 或poetry 的机器人项目,本插件会自动检查相应的依赖固定信息(即*.lock 文件)判断并调用相应工具自动向容器内传递依赖。
对于其他管理方式的机器人项目,则需要手动导出一份requirements.txt 来传递项目依赖到容器内,例如:
source .venv/bin/activatepip freeze> requirements.txt
构建机器人镜像。
部署/取消部署机器人实例。
查看机器人日志。
查看机器人运行状态。
About
docker support for nb-cli
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.

