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
-
Start container:
docker run -d --name wocker-ngrok ngrok/ngrok http 3000
-
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)