Shoreline Software Agent Image是Shoreline Software提供的官方Docker镜像,用于部署轻量级代理程序,实现对云基础设施、容器化应用及系统资源的实时监控、管理与自动化运维。该镜像设计轻量高效,可无缝集成到现有容器编排环境(如Kubernetes、Docker Swarm)中,支持多平台部署,为运维团队提供统一的监控与操作界面。
bashdocker run -d \ --name shoreline-agent \ --restart always \ --net=host \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /proc:/host/proc:ro \ -v /sys:/host/sys:ro \ -e SHORELINE_API_KEY="your-api-key" \ -e SHORELINE_CONTROL_PLANE="https://console.shoreline.io:443" \ -e AGENT_LOG_LEVEL="info" \ shoreline/agent:latest
卷挂载
| 挂载路径 | 用途 | 权限 |
|---|---|---|
/var/run/docker.sock | 访问Docker守护进程,监控容器状态 | 读写 |
/host/proc | 采集主机进程与系统指标 | 只读 |
/host/sys | 采集主机硬件与内核指标 | 只读 |
环境变量
| 变量名 | 描述 | 必填 | 默认值 |
|---|---|---|---|
SHORELINE_API_KEY | Shoreline平台API密钥,用于身份认证 | 是 | - |
SHORELINE_CONTROL_PLANE | 控制平面URL | 是 | https://console.shoreline.io:443 |
AGENT_LOG_LEVEL | 日志级别(debug/info/warn/error) | 否 | info |
COLLECTION_INTERVAL | 指标采集间隔(秒) | 否 | 30 |
AGENT_PROXY | 代理服务器地址(格式:http://ip:port) | 否 | - |
MAX_LOG_SIZE | 日志文件最大尺寸(MB) | 否 | 100 |
创建docker-compose.yml文件:
yamlversion: '3.8' services: shoreline-agent: image: shoreline/agent:latest container_name: shoreline-agent restart: always network_mode: host volumes: - /var/run/docker.sock:/var/run/docker.sock - /proc:/host/proc:ro - /sys:/host/sys:ro environment: - SHORELINE_API_KEY=your-api-key - SHORELINE_CONTROL_PLANE=https://console.shoreline.io:443 - AGENT_LOG_LEVEL=info - COLLECTION_INTERVAL=15
启动服务:
bashdocker-compose up -d
推荐通过Helm Chart部署(官方Chart地址),或使用DaemonSet清单:
yamlapiVersion: apps/v1 kind: DaemonSet metadata: name: shoreline-agent namespace: shoreline spec: selector: matchLabels: app: shoreline-agent template: metadata: labels: app: shoreline-agent spec: hostNetwork: true volumes: - name: docker-sock hostPath: {path: /var/run/docker.sock} - name: host-proc hostPath: {path: /proc, readOnly: true} - name: host-sys hostPath: {path: /sys, readOnly: true} containers: - name: shoreline-agent image: shoreline/agent:latest volumeMounts: - name: docker-sock mountPath: /var/run/docker.sock - name: host-proc mountPath: /host/proc readOnly: true - name: host-sys mountPath: /host/sys readOnly: true env: - name: SHORELINE_API_KEY valueFrom: {secretKeyRef: {name: shoreline-secrets, key: api-key}} - name: SHORELINE_CONTROL_PLANE value: "https://console.shoreline.io:443"
docker ps | grep shoreline-agentdocker logs shoreline-agentSuccessfully connected to control plane表示连接正常latest(最新稳定版)、vX.Y.Z(特定版本)bashdocker pull shoreline/agent:latest docker restart shoreline-agent
docker run --user 1000:1000 ...bashexport DOCKER_CONTENT_TRUST=1 docker pull shoreline/agent:latest
以下是 shorelinesoftware/agent 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

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