该镜像为AppDynamics提供的Python代理安装仓库,旨在简化容器环境中Python应用性能监控代理的部署流程。通过集成此镜像,用户可快速配置并安装AppDynamics Python APM代理,实现对容器化Python应用的实时性能数据采集、事务追踪和异常监控,并与AppDynamics Controller无缝对接。
1. 镜像拉取
bashdocker pull appdynamics/python-agent-repo:<tag>
注:
<tag>需替换为具体版本号,如latest或特定代理版本。
2. 环境变量配置
| 环境变量名称 | 描述 | 示例值 | 是否必填 |
|---|---|---|---|
| APPDYNAMICS_CONTROLLER_HOST | AppDynamics Controller主机地址 | controller.example.com | 是 |
| APPDYNAMICS_CONTROLLER_PORT | Controller端口 | 443 | 是 |
| APPDYNAMICS_CONTROLLER_SSL_ENABLED | 是否启用SSL连接Controller | true | 是 |
| APPDYNAMICS_AGENT_ACCOUNT_NAME | 控制器账户名 | customer1 | 是 |
| APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY | 账户访问密钥 | abc123... | 是 |
| APPDYNAMICS_AGENT_APPLICATION_NAME | 监控的应用名称 | PythonApp | 是 |
| APPDYNAMICS_AGENT_TIER_NAME | 应用层级名称 | PythonTier | 是 |
| APPDYNAMICS_AGENT_NODE_NAME | 节点名称(容器内唯一) | node-$(hostname) | 是 |
| PYTHON_AGENT_VERSION | Python代理版本 | 21.10.0 | 否(默认latest) |
| APPDYNAMICS_AGENT_PROXY_HOST | 代理服务器主机(如需通过代理连接Controller) | proxy.example.com | 否 |
| APPDYNAMICS_AGENT_PROXY_PORT | 代理服务器端口 | 8080 | 否 |
3. Docker Run部署示例
bashdocker run -d \ -e APPDYNAMICS_CONTROLLER_HOST=controller.example.com \ -e APPDYNAMICS_CONTROLLER_PORT=443 \ -e APPDYNAMICS_CONTROLLER_SSL_ENABLED=true \ -e APPDYNAMICS_AGENT_ACCOUNT_NAME=customer1 \ -e APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY=your-access-key \ -e APPDYNAMICS_AGENT_APPLICATION_NAME=PythonApp \ -e APPDYNAMICS_AGENT_TIER_NAME=PythonTier \ -e APPDYNAMICS_AGENT_NODE_NAME=node-$(hostname) \ appdynamics/python-agent-repo:latest
4. Docker Compose配置示例
yamlversion: '3' services: python-agent-install: image: appdynamics/python-agent-repo:latest environment: - APPDYNAMICS_CONTROLLER_HOST=controller.example.com - APPDYNAMICS_CONTROLLER_PORT=443 - APPDYNAMICS_CONTROLLER_SSL_ENABLED=true - APPDYNAMICS_AGENT_ACCOUNT_NAME=customer1 - APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY=your-access-key - APPDYNAMICS_AGENT_APPLICATION_NAME=PythonApp - APPDYNAMICS_AGENT_TIER_NAME=PythonTier - APPDYNAMICS_AGENT_NODE_NAME=node-${HOSTNAME} volumes: - ./agent-install:/appdynamics/agent # 可选,挂载本地目录保存安装文件
5. 验证部署
安装完成后,可通过以下方式验证代理是否正常运行:
docker logs <container-id>,确认无错误信息您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

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