Skip to content

使用官方提供的 Docker Compose 部署方式开启 WireGuard 功能报错 #152

@732124645

Description

@732124645

使用官方提供的 Docker Compose 部署方式开启 WireGuard 功能报错

问题描述

在使用以下官方推荐的 Docker Compose 配置部署客户端时,启动容器后尝试初始化 WireGuard 功能时报错 iptables not found,导致客户端无法完成启动。

Docker Compose 配置

version: '3'
services:
  frp-panel-client:
    image: vaalacat/frp-panel
    container_name: frp-panel-client
    network_mode: host
    restart: unless-stopped
    command: client -s abc -i user.c.client1 --api-url https://frpp.example.com:443 --rpc-url wss://frpp.example.com:443

错误日志

create iptables handler (ipv6=false)
exec: "iptables": executable file not found in $PATH
apply firewall rules failed
start wireguard service failed

复现步骤

  1. 使用官方提供的 docker-compose.yaml 文件。
  2. 启动容器:
    docker-compose up -d
  3. 使用 WireGuard 组网功能时,容器报错并初始化失败。

宿主机信息

  • 系统版本OpenCloudOS 9.4
  • 架构x86_64
  • 内核版本6.6.117-45.oc9.x86_64
  • Docker 版本28.0.1
  • Docker Compose 版本2.39.1

客户端信息

  • 项目版本v0.1.36

期待结果

容器能够在无需依赖宿主机或容器内部安装 iptables 的情况下,正常使用 WireGuard 组网功能。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions