Skip to content

Ignore debug output #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nollium opened this issue Dec 26, 2024 · 1 comment
Open

Ignore debug output #51

nollium opened this issue Dec 26, 2024 · 1 comment

Comments

@nollium
Copy link

nollium commented Dec 26, 2024

When running any binaries compiled by dockerc on my system, the following debug output is displayed:

newuidmap failed, falling back to single user mapping
newgidmap failed, falling back to single group mapping
unknown argument ignored: lazytime

A quick code search brought up this snippet of the main.zig file:
image

This seems to be debug logging, it would be useful to have an option to disable it when compiling the binary.

For context: my use case is to use dockerc for non-competitive, beginner focused CTF challenges, the extra debugging output might confuse noob players, and I wish to avoid that.

Currently I have no other choice than patching dockerc source code and building it myself, which is fine, I just wanted to let you know someone had this use-case

@lars18th
Copy link

lars18th commented Feb 3, 2025

Hi,

I recommend to add different runtime log output levels to the dockerc command.

For example with a new -l --loglevel parameter:

  • -l 0: It disables all logs related to the container runtime.
  • -l 1: Default mode. Like now it prints some info.
  • -l 2: It prints the steps executed in the container runtime. Useful for debugging the container.
  • -l 3: Full verbose mode with all trace of the container runtime.

I wish the developer would want to take this into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants