[GH-ISSUE #1107] [Feature] 容器部署,容器内不支持常用命令,如ssh,apt等 #747

Closed
opened 2026-03-03 01:05:42 +03:00 by kerem · 5 comments
Owner

Originally created by @mbC6zC on GitHub (Dec 16, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/1107

Description / 功能描述

[2025-12-16 18:51:08]
could not deploy certificate
[2025-12-16 18:51:08]
failed to execute post-command (stdout: , stderr: sh: ssh: not found ): failed to execute command: exit status 127

Motivation / 请求动机

新增特性,满足跨主机远程部署需求。

Miscellaneous / 其他

No response

Contribution / 贡献代码

  • I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
Originally created by @mbC6zC on GitHub (Dec 16, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/1107 ### Description / 功能描述 [2025-12-16 18:51:08] could not deploy certificate [2025-12-16 18:51:08] failed to execute post-command (stdout: , stderr: sh: ssh: not found ): failed to execute command: exit status 127 ### Motivation / 请求动机 新增特性,满足跨主机远程部署需求。 ### Miscellaneous / 其他 _No response_ ### Contribution / 贡献代码 - [ ] I am interested in contributing a PR for this! / 我乐意为此提交代码并发起 PR!
kerem 2026-03-03 01:05:42 +03:00
Author
Owner

@fudiwei commented on GitHub (Dec 16, 2025):

alpine 基座本来就是什么都不带,需要你自行安装。

另外 alpine 的包管理器是 apk 而不是 apt。

<!-- gh-comment-id:3660517222 --> @fudiwei commented on GitHub (Dec 16, 2025): alpine 基座本来就是什么都不带,需要你自行安装。 另外 alpine 的包管理器是 apk 而不是 apt。
Author
Owner

@mbC6zC commented on GitHub (Dec 16, 2025):

升级会有比较大的问题。部署脚本里面举的例子就是用ssh,实际编写好的脚本用不起来啊。

<!-- gh-comment-id:3660575473 --> @mbC6zC commented on GitHub (Dec 16, 2025): 升级会有比较大的问题。部署脚本里面举的例子就是用ssh,实际编写好的脚本用不起来啊。
Author
Owner

@mbC6zC commented on GitHub (Dec 16, 2025):

用容器生成证书,一般不是在当前容器内使用。hostpath可以实现把证书放到外部环境,就差最后执行重启命令,易用性打折扣了。

<!-- gh-comment-id:3660591623 --> @mbC6zC commented on GitHub (Dec 16, 2025): 用容器生成证书,一般不是在当前容器内使用。hostpath可以实现把证书放到外部环境,就差最后执行重启命令,易用性打折扣了。
Author
Owner

@fudiwei commented on GitHub (Dec 16, 2025):

在前置命令里安装所需的包,参考 https://github.com/certimate-go/certimate/issues/616

<!-- gh-comment-id:3660611506 --> @fudiwei commented on GitHub (Dec 16, 2025): 在前置命令里安装所需的包,参考 https://github.com/certimate-go/certimate/issues/616
Author
Owner

@mbC6zC commented on GitHub (Dec 16, 2025):

在前置命令里安装所需的包,参考 #616

好吧,花活挺多的~

<!-- gh-comment-id:3660658004 --> @mbC6zC commented on GitHub (Dec 16, 2025): > 在前置命令里安装所需的包,参考 [#616](https://github.com/certimate-go/certimate/issues/616) 好吧,花活挺多的~
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#747
No description provided.