惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Hacker News
The Hacker News
Google Online Security Blog
Google Online Security Blog
K
Kaspersky official blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Cisco Talos Blog
Cisco Talos Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyberwarzone
Cyberwarzone
L
LINUX DO - 最新话题
PCI Perspectives
PCI Perspectives
酷 壳 – CoolShell
酷 壳 – CoolShell
云风的 BLOG
云风的 BLOG
N
News and Events Feed by Topic
N
News and Events Feed by Topic
V
Vulnerabilities – Threatpost
T
Troy Hunt's Blog
GbyAI
GbyAI
C
CERT Recently Published Vulnerability Notes
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
量子位
Scott Helme
Scott Helme
月光博客
月光博客
Attack and Defense Labs
Attack and Defense Labs
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
Project Zero
Project Zero
G
GRAHAM CLULEY
博客园 - 【当耐特】
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
小众软件
小众软件
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
O
OpenAI News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
爱范儿
爱范儿
S
Security @ Cisco Blogs
The Last Watchdog
The Last Watchdog
MongoDB | Blog
MongoDB | Blog
H
Hacker News: Front Page
Latest news
Latest news
P
Proofpoint News Feed

博客园 - 与f

微软的人机验证 python使用docx库对在word中的表格合并操作 Python 项目创建+依赖管理+版本控制 百度飞桨PaddleOCR-VL识别发票图片输出json格式 大模型微调后导出,部署服务然后后端调用 openclaw的一些聊天配置 docker 部署 openclaw llama.cpp编译 微信小程序显示ai返回的markdown或html C#多端桌面程序(可跨平台) 主流 MySQL 热备份方案 基于SRS(Simple Realtime Server)+ CDN边缘节点加速3个nginx做文件分发1个nginx做负载均衡 一份基于SRS(Simple Realtime Server)+ CDN边缘节点srs edge加速的万人级直播部署清单 HLS(HTTP Live Streaming)标准的视频及加密和解密播放 HLS(HTTP Live Streaming)标准的视频及加密 使用Dockerfile创建一个hyperf容器做为开发环境 docker的hyperf框架docker-compose一键安装 通过vm虚拟中的docker 环境做开发 ubuntu 安装后ssh 连接到服务器 lvm的概念和操作(linux) PHP Attributes 注解 centos 服务器查找一些字符串 Centos8网络配置小工具 Keepalive实现一个高可用负载均衡场景 Keepalived详解:原理、编译安装与高可用集群配置
docker运行hermes agent
与f · 2026-05-17 · via 博客园 - 与f

我下载的docker镜像是 nousresearch/hermes-agent:main

创建 docker-compose.yml

version: '3.8'

networks:
  hermes-net:
    driver: bridge

volumes:
  hermes-data:

services:
  # 核心网关服务
  hermes:
    image: nousresearch/hermes-agent:main
    container_name: hermes
    restart: unless-stopped
    networks:
      - hermes-net
    ports:
      - "8642:8642"
    volumes:
      # 把当前目录 hermes 文件夹 挂载到容器 /opt/data
      - ./hermes:/opt/data
    # 🔥 就加了这一段,自动修复所有权限问题
    command: >
      bash -c "exec hermes gateway run"
    environment:
      - GATEWAY_ALLOW_ALL_USERS=true

  # Web 面板(可选)
  hermes-dashboard:
    image: nousresearch/hermes-agent:main
    container_name: hermes-dashboard
    restart: unless-stopped
    networks:
      - hermes-net
    ports:
      - "127.0.0.1:9119:9119"
    volumes:
      - ./hermes:/opt/data
    environment:
      GATEWAY_HEALTH_URL: http://hermes:8642
    command: dashboard --host 0.0.0.0 --insecure
version: '3.8'

networks:
  hermes-net:
    driver: bridge

volumes:
  hermes-data:

services:
  # 核心网关服务
  hermes:
    image: nousresearch/hermes-agent:main
    container_name: hermes
    restart: unless-stopped
    networks:
      - hermes-net
    ports:
      - "8642:8642"
    volumes:
      # 把当前目录 hermes 文件夹 挂载到容器 /opt/data
      - ./hermes:/opt/data
    # 🔥 就加了这一段,自动修复所有权限问题
    command: >
      bash -c "exec hermes gateway run"
    environment:
      - GATEWAY_ALLOW_ALL_USERS=true
      - HERMES_ALLOW_ROOT_GATEWAY=1

  # Web 面板(可选)
  hermes-dashboard:
    image: nousresearch/hermes-agent:main
    container_name: hermes-dashboard
    restart: unless-stopped
    networks:
      - hermes-net
    ports:
      - "127.0.0.1:9119:9119"
    volumes:
      - ./hermes:/opt/data
    environment:
      - GATEWAY_HEALTH_URL: http://hermes:8642
      - HERMES_ALLOW_ROOT_GATEWAY=1 
    command: dashboard --host 0.0.0.0 --insecure

1. 启动容器

2. 进入容器内部

docker exec -it hermes bash
#或通过 window 界面

3. 初始化hermes

# 进容器
docker exec -it hermes bash

# 需要激活虚拟环境,不然hermes找不到命令
source /opt/hermes/.venv/bin/activate

# 现在就能用所有 hermes 命令
hermes gateway list
hermes gateway status

hermes setup
hermes
hermes gateway list
#等


# 查看网关状态
/opt/hermes/.venv/bin/hermes gateway status

# 重启网关
/opt/hermes/.venv/bin/hermes gateway restart
hermes gateway status   # 查看网关运行状态
hermes gateway list     # 列出所有平台(QQ/微信等)
hermes logs             # 查看运行日志
hermes config show      # 查看当前配置
#命令行安装一个语音依赖
uv pip install edge-tts --index-url https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
#docker 日志报文件权限不足时:(说明有些文件,只有root用户权限可读取或修改,需要给当前用户加权限)
sudo
chown hermes:hermes /opt/data/auth.json

source /opt/hermes/.venv/bin/activate
hermes setup

docker之后运行
https://blog.csdn.net/2601_95983126/article/details/160889823

 https://www.bilibili.com/video/BV1L1oEB9Enj