Skip to content

Container returns "openat etc/passwd: path escapes from parent" #97

@kearisp

Description

@kearisp

Description

When running the official ngrok Docker image, executing curl inside the container fails with:

openat etc/passwd: path escapes from parent

Steps to reproduce

  1. Start container:
    docker run -d --name wocker-ngrok ngrok/ngrok http 3000

  2. Execute inside container:
    docker exec wocker-ngrok curl http://localhost:4040/api/tunnels

Expected behavior

Should return JSON with active tunnels.

Actual behavior

Returns:
openat etc/passwd: path escapes from parent

Environment

  • Docker version: Docker version 29.2.0, build 0b9d198
  • Image: ngrok/ngrok:latest | ngrok/ngrok:3-alpine
  • OS: Windows (WSL2)

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