镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Error: Failed to execute ip netns add #74

Open

Description

@alexec

I'm running in a Docker container, which does not (cannot) have ip installed.

user@test-workspace-88b1c24e:/workspace/test-workspace$ sudo ~user/.cargo/bin/httpjail --js "r.host === 'github.com'" -- hello
21:58:40.666 ERROR httpjail::sys_resource: Failed to cleanup resource on drop: Failed to execute ip netns del
Error: Failed to execute ip netns add

Caused by:
    No such file or directory (os error 2)

I don't think this can ever work within a Docker container.

Activity

  1. ammario commented on Sep 30, 2025

    @ammario
    Member

    Hi, yes the strong jail hasn't been tested inside the Docker container. I might be able to get it to work, but it's expectation of low-level system access make support long-term burdensome. Could you share more details about your use case? Specifically, why run httpjail inside the container vs. outside with httpjail --docker-run?

  2. alexec commented on Oct 4, 2025

    @alexec
    Author

    We're currently using sysbox-runc so we're able to use iptables. We have a sandbox with HTTP/S proxy. We wish to limit max request to specific endpoints, e.g. POST https://github.com/api/v3/*pull* 0 to allow max zero requests (i.e. block creation of PRs)>

  3. added a commit that references this issue on Oct 9, 2025
    f5d471c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions