Comments (3)
Hey Pascal,
I completely relate to this request, but unfortunately it's not quite that straight forward with this image.
What I've done for security and size is based the image on scratch
so there is no distro or package manager to install tzdata
. We could manually add tzdata related binaries and files to the image by building them from source, but that may not be worth the size or effort.
However, if you are running the container on Linux there is a workaround:
docker run --rm -d -v /etc/localtime:/etc/localtime:ro --name dnscrypt klutchell/dnscrypt-proxy
By mounting the host /etc/localtime
volume into the container the running kernel and dnscrypt logs will reflect the timezone of the host OS.
$ date && docker run --rm -it klutchell/dnscrypt-proxy
Mon Feb 3 09:01:32 EST 2020
[2020-02-03 14:01:33] [NOTICE] dnscrypt-proxy 2.0.39
[2020-02-03 14:01:33] [NOTICE] Network connectivity detected
[2020-02-03 14:01:34] [NOTICE] Source [relays] loaded
[2020-02-03 14:01:34] [NOTICE] Source [public-resolvers] loaded
[2020-02-03 14:01:34] [NOTICE] Firefox workaround initialized
[2020-02-03 14:01:34] [NOTICE] Now listening to 0.0.0.0:5053 [UDP]
[2020-02-03 14:01:34] [NOTICE] Now listening to 0.0.0.0:5053 [TCP]
$ date && docker run --rm -it -v /etc/localtime:/etc/localtime:ro klutchell/dnscrypt-proxy
Mon Feb 3 09:01:55 EST 2020
[2020-02-03 09:01:56] [NOTICE] dnscrypt-proxy 2.0.39
[2020-02-03 09:01:56] [NOTICE] Network connectivity detected
[2020-02-03 09:01:56] [NOTICE] Source [relays] loaded
[2020-02-03 09:01:56] [NOTICE] Source [public-resolvers] loaded
[2020-02-03 09:01:56] [NOTICE] Firefox workaround initialized
[2020-02-03 09:01:56] [NOTICE] Now listening to 0.0.0.0:5053 [UDP]
[2020-02-03 09:01:56] [NOTICE] Now listening to 0.0.0.0:5053 [TCP]
Let me know if this workaround suits your scenario. If your host is MacOS or Windows the solution may not work exactly the same way but there may be alternatives with some brainstorming.
from dnscrypt-proxy-docker.
This works as well on MacOS.
from dnscrypt-proxy-docker.
Thank you for this! I can confirm it works perfectly on Ubuntu. 👍
from dnscrypt-proxy-docker.
Related Issues (20)
- Add `dig` binary to image to allow defining health probes HOT 11
- Reporting a vulnerability
- ACTION REQUIRED: Changes to pulling Chainguard Images
- Permission denied for public-resolvers.md and relays.md HOT 5
- Question on the removed `HEALTHCHECK` HOT 2
- Anonymized DNSCrypt Support HOT 7
- [Question] How to setup to work alongside a Pi-hole container? HOT 10
- Is it possible that you add parameter for timezone? HOT 2
- logs HOT 2
- Unable to load the configuration file [/config/dnscrypt-proxy.toml] HOT 1
- 2.1.0 is released today HOT 1
- DNSCrypt Proxy No longer working after update to 2.1.0 HOT 2
- Problem getting oDoH to work HOT 2
- Configuration File Not Being Read
- "Latest" Image Restarting (132) Issue HOT 9
- Clarify proper permissions for config volume HOT 3
- Anonymized DNSCrypt doesn't work in WSL2 or Hyper-V on Windows HOT 12
- How nx and query logs can be checked? HOT 3
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnscrypt-proxy-docker.