
act-images 是基于 nektos/act 官方镜像(如 catthehacker 系列)构建的自定义 Docker 镜像,与 nektos/act 工具完全兼容。该镜像预安装了 yq(数据处理工具)和 gomplate(模板渲染工具),旨在帮助开发者在本地使用 nektos/act 运行 GitHub Actions 工作流时,无需在工作流中额外配置工具安装步骤,直接使用预配置环境,简化流程并提升执行效率。
apt install、brew install 等)的场景。从 GitHub 仓库拉取 act-images 镜像(具体标签需根据基础镜像版本选择,如对应 Ubuntu 版本):
bashdocker pull ghcr.io/carbon-nexus/act-images:<镜像标签> # 示例:拉取基于 ubuntu-latest 的镜像 docker pull ghcr.io/carbon-nexus/act-images:ubuntu-latest
注:完整镜像标签列表请参考 GitHub 仓库:https://github.com/carbon-nexus/act-images%E3%80%82
运行 act 时,通过 -P 参数指定使用 act-images 镜像作为工作流执行环境:
bash# 基本用法:指定镜像运行工作流(以 ubuntu-latest 为例) act -P ubuntu-latest=ghcr.io/carbon-nexus/act-images:ubuntu-latest # 运行特定工作流文件 act -P ubuntu-latest=ghcr.io/carbon-nexus/act-images:ubuntu-latest -W .github/workflows/my-workflow.yml # 传递环境变量并运行 act -P ubuntu-latest=ghcr.io/carbon-nexus/act-images:ubuntu-latest -e .env
可通过以下命令验证镜像中工具是否正常工作:
bash# 验证 yq 版本 docker run --rm ghcr.io/carbon-nexus/act-images:latest yq --version # 验证 gomplate 版本 docker run --rm ghcr.io/carbon-nexus/act-images:latest gomplate --version
ubuntu-20.04、ubuntu-22.04 等),确保与工作流中指定的 runs-on 环境匹配。您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。



探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 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 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务