-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
推荐使用 latest 标签 #15
推荐使用 latest 标签 #15
Conversation
It is OK to use the `latest` tag.
Walkthrough文档 Changes
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
docs/setup/Docker.md (2)
24-25
: 建议补充版本管理相关说明虽然使用
latest
标签配合pull_policy: always
可以确保获取最新版本,但建议补充以下内容:
- 说明版本更新可能带来的潜在影响
- 如何回退到特定版本(以防最新版本出现问题)
- 建议在测试环境先验证新版本
建议添加如下内容:
pull_policy: always + # 如需使用特定版本,请将 latest 替换为具体的版本号 + # 例如:ghostchu/peerbanhelper:1.0.0
48-48
: 建议优化命令示例的可读性当前命令中的占位符文本可能会让用户困惑。建议做如下改进:
-sudo docker run -d --pull always --name peerbanhelper --stop-timeout -p 9898:9898 -v ${PWD}/:/app/data/ 将此段文字替换为你刚刚获取的镜像标签 +sudo docker run -d --pull always --name peerbanhelper --stop-timeout -p 9898:9898 -v ${PWD}/:/app/data/ ghostchu/peerbanhelper:latest +# 注意:如果您想使用特定版本,请将 latest 替换为具体的版本号
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
docs/setup/Docker.md
(2 hunks)
🔇 Additional comments (1)
docs/setup/Docker.md (1)
42-42
: 警告信息清晰有效
警告信息很好地说明了使用 CLI 部署方式的潜在问题和维护成本,有助于用户选择更合适的部署方式。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不推荐使用 latest 标签,latest 同时接收 Pre-Release 更新,是否使用 Pre-Release 由用户决定。
Pre-Release 的 docker tag 可否用其他命名? |
在使用镜像的情况下,latest标签不一定是最新的,可能会导致更新出问题 |
docker 的默认行为是有缓存的,但是指定 pull always 就没有这个问题。 |
和docker无关,是说镜像站,镜像站是定期从dockerhub同步的,相同tag的话并不会更新
…----------
该邮件从移动设备发送
--------------原始邮件--------------
发件人:"xfl12345 ***@***.***>;
发送时间:2024年11月22日(星期五) 下午2:08
收件人:"PBH-BTN/pbh-docs" ***@***.***>;
抄送:"高渐离 ***@***.***>;"Comment ***@***.***>;
主题:Re: [PBH-BTN/pbh-docs] 推荐使用 latest 标签 (PR #15)
-----------------------------------
不推荐使用 latest 标签,latest 同时接收 Pre-Release 更新,是否使用 Pre-Release 由用户决定。
Pre-Release 的 docker tag 可否用其他命名?latest 标签理应是稳定版
在使用镜像的情况下,latest标签不一定是最新的,可能会导致更新出问题
docker 的默认行为是有缓存的,但是指定 pull always 就没有这个问题。
详见 https://docs.docker.com/reference/cli/docker/container/run/#pull
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
English version plz
已修正为双版本参考 |
English version is offered. |
It is OK to use the
latest
tag.Summary by CodeRabbit
latest
镜像的警告,明确推荐使用ghostchu/peerbanhelper:latest
镜像标签。