本镜像包含Akamai官方提供的防火墙规则与Site Shield命令行工具(CLI),基于https://github.com/akamai/cli-firewall%E9%A1%B9%E7%9B%AE%E6%9E%84%E5%BB%BA%E3%80%82%E8%AF%A5%E5%B7%A5%E5%85%B7%E6%97%A8%E5%9C%A8%E4%B8%BA%E7%94%A8%E6%88%B7%E6%8F%90%E4%BE%9B%E4%BE%BF%E6%8D%B7%E7%9A%84%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%8E%A5%E5%8F%A3%EF%BC%8C%E7%94%A8%E4%BA%8E%E7%AE%A1%E7%90%86Akamai%E7%BD%91%E7%BB%9C%E4%B8%AD%E7%9A%84%E9%98%B2%E7%81%AB%E5%A2%99%E8%A7%84%E5%88%99%E9%85%8D%E7%BD%AE%E5%8F%8ASite Shield安全功能,支持安全规则的创建、修改、查询与删除等操作。
client_token、client_secret及access_token)edgerc配置文件(格式参考Akamai API工具标准)bash# 挂载edgerc文件并列出所有防火墙规则 docker run --rm -v /本地路径/edgerc:/root/.edgerc akamai/cli-firewall firewall-rules list --section default # 查看镜像版本信息 docker run --rm akamai/cli-firewall --version
4.3.1 防火墙规则操作
bash# 创建新防火墙规则(通过JSON文件定义规则) docker run --rm -v /本地路径/edgerc:/root/.edgerc -v /本地路径/rules:/rules akamai/cli-firewall firewall-rules create --section default --rule-file /rules/new-rule.json # 修改现有防火墙规则 docker run --rm -v /本地路径/edgerc:/root/.edgerc akamai/cli-firewall firewall-rules update --section default --rule-id 12345 --rule-file /rules/updated-rule.json # 删除指定ID的防火墙规则 docker run --rm -v /本地路径/edgerc:/root/.edgerc akamai/cli-firewall firewall-rules delete --section default --rule-id 12345
4.3.2 Site Shield操作
bash# 查看Site Shield当前配置 docker run --rm -v /本地路径/edgerc:/root/.edgerc akamai/cli-firewall site-shield show --section default # 更新Site Shield IP列表 docker run --rm -v /本地路径/edgerc:/root/.edgerc -v /本地路径/ip-list.json:/ip-list.json akamai/cli-firewall site-shield update-ips --section default --ip-file /ip-list.json
4.4.1 必要配置
-v参数将本地edgerc文件挂载至容器内/root/.edgerc路径,文件格式示例:
ini[default] client_token = akab-xxx client_secret = xxx access_token = akab-xxx host = akab-xxx.luna.akamaiapis.net
4.4.2 可选参数
--section <section-name>:指定edgerc文件中的配置段名称(默认使用default)--rule-id <id>:防火墙规则唯一标识符,用于定位具体规则--rule-file <path>:本地JSON文件路径,包含防火墙规则的详细配置--ip-file <path>:本地JSON文件路径,包含Site Shield的IP列表配置edgerc文件包含敏感API凭据,需确保文件权限设置为600(仅所有者可读写),避免信息泄露list命令备份当前规则配置firewall-rules:write、site-shield:read等),权限不足将导致操作失败您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 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 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务