[GH-ISSUE #80] Can't export report in k8s #68

Closed
opened 2026-02-27 15:38:12 +03:00 by kerem · 2 comments
Owner

Originally created by @hungthai1401 on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/NikkeTryHard/zerogravity/issues/80

What happened? / 发生了什么?

When execute by zg trace or zg report, I have gotten error: 'trace' must be run inside the Docker container.
The proxy runs exclusively in Docker.
Use docker exec zerogravity zg trace to run it inside the container.
Or use zg docker-init to set up Docker if you haven't already.

How to reproduce / 如何复现

Serve zg in simple pod and execute in that pod

Diagnostic Report / 诊断报告

I don't have

Additional Context / 补充信息

No response

Originally created by @hungthai1401 on GitHub (Feb 26, 2026). Original GitHub issue: https://github.com/NikkeTryHard/zerogravity/issues/80 ### What happened? / 发生了什么? When execute by `zg trace` or `zg report`, I have gotten error: 'trace' must be run inside the Docker container. The proxy runs exclusively in Docker. Use docker exec zerogravity zg trace to run it inside the container. Or use zg docker-init to set up Docker if you haven't already. ### How to reproduce / 如何复现 Serve zg in simple pod and execute in that pod ### Diagnostic Report / 诊断报告 ```text I don't have ``` ### Additional Context / 补充信息 _No response_
kerem 2026-02-27 15:38:12 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@LibertX commented on GitHub (Feb 26, 2026):

Was about to open the same issue for Podman:

# podman exec -it zerogravity zg report 87e9f712
'report' must be run inside the Docker container.
  The proxy runs exclusively in Docker.
  Use docker exec zerogravity zg report to run it inside the container.
  Or use zg docker-init to set up Docker if you haven't already.
<!-- gh-comment-id:3965089520 --> @LibertX commented on GitHub (Feb 26, 2026): Was about to open the same issue for Podman: ``` # podman exec -it zerogravity zg report 87e9f712 'report' must be run inside the Docker container. The proxy runs exclusively in Docker. Use docker exec zerogravity zg report to run it inside the container. Or use zg docker-init to set up Docker if you haven't already. ```
Author
Owner

@NikkeTryHard commented on GitHub (Feb 27, 2026):

Fixed in PR #179 (private repo).

Container detection now covers Docker, Podman, Kubernetes, containerd, and CRI-O — not just Docker. The zg trace and zg report commands will work correctly in any of these runtimes.

Will be included in the next release.

<!-- gh-comment-id:3970560084 --> @NikkeTryHard commented on GitHub (Feb 27, 2026): Fixed in [PR #179](https://github.com/NikkeTryHard/zerogravity-src/pull/179) (private repo). Container detection now covers Docker, Podman, Kubernetes, containerd, and CRI-O — not just Docker. The `zg trace` and `zg report` commands will work correctly in any of these runtimes. Will be included in the next release.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zerogravity#68
No description provided.