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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
博客园 - Franky
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
量子位
V
Visual Studio Blog
Y
Y Combinator Blog
小众软件
小众软件
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
Microsoft Security Blog
Microsoft Security Blog
雷峰网
雷峰网

博客园 - 与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