Skip to content
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

logs #25

Closed
adit-s opened this issue Mar 27, 2021 · 2 comments
Closed

logs #25

adit-s opened this issue Mar 27, 2021 · 2 comments

Comments

@adit-s
Copy link

adit-s commented Mar 27, 2021

Hey Kyle. Hope everything is well.
I was trying to get at the dnscrypt logs but can't figure out how to. I can't attach to the container with a shell so can't go in and manually look at the logs. I was wondering if you had any ideas or suggestions?

In the dnscrypt-proxy.toml, there is an option to enable logging:

## Log file for the application, as an alternative to sending logs to
## the standard system logging service (syslog/Windows event log).
##
## This file is different from other log files, and will not be
## automatically rotated by the application.

# log_file = 'dnscrypt-proxy.log'

Is there a way to view it (or the standard syslog) in the container?

Thanks,
Adit

@klutchell
Copy link
Owner

Hey @adit-s, this image was designed to be "distroless", meaning there is no shell or binaries besides the ones required to run dnscrypt-proxy. This keeps the image very small and reduces the attack surface.

If you want to write logs to a file, I recommend mounting a local volume and enable the log file option in your config to point to a path in that directory.

@adit-s
Copy link
Author

adit-s commented Mar 28, 2021

That worked. Thanks @klutchell.

@adit-s adit-s closed this as completed Mar 28, 2021
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