
Certbot是电子前哨基金会(EFF)加密互联网计划的核心工具,作为ACME协议客户端,能够从Let's Encrypt(由EFF、Mozilla等发起的开源证书机构)获取免费SSL/TLS证书,并自动部署到Web服务器。它解决了传统证书获取与维护的繁琐流程,通过简单命令即可实现HTTPS的启用和管理,全程自动化且无需支付费用。
推荐通过官方网站获取针对特定Web服务器和操作系统的详细安装说明:Certbot安装指南
交互式运行
直接执行以下命令启动交互式向导,引导完成证书获取和安装:
bashcertbot # 或部分系统使用 ./certbot-auto
命令行帮助
查看完整命令行选项:
bashcertbot --help all # 或 ./certbot-auto --help all
典型使用示例
1. 使用Apache插件自动配置证书 为多个域名获取证书并通过Apache插件自动配置:
bashcertbot --apache -d example.com -d www.example.com -d other.example.net
首次运行可添加参数自动化账户创建:
bashcertbot --apache --email admin@example.com --agree-tos -d example.com
2. 使用Standalone模式获取证书 适用于无插件支持的Web服务器,通过内置Web服务器验证域名:
bashcertbot certonly --standalone --email admin@example.com -d example.com -d www.example.com
基本Docker运行命令
bashdocker run -it --rm \ -v /etc/letsencrypt:/etc/letsencrypt \ -v /var/lib/letsencrypt:/var/lib/letsencrypt \ certbot/certbot certonly --standalone -d example.com
Docker Compose配置示例
yamlversion: '3' services: certbot: image: certbot/certbot volumes: - /etc/letsencrypt:/etc/letsencrypt - /var/lib/letsencrypt:/var/lib/letsencrypt command: certonly --standalone -d example.com --email admin@example.com --agree-tos
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。






探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务