Giter Club home page Giter Club logo

Comments (3)

klutchell avatar klutchell commented on September 27, 2024 1

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.

jedisct1 avatar jedisct1 commented on September 27, 2024 1

This works as well on MacOS.

from dnscrypt-proxy-docker.

milhouse1337 avatar milhouse1337 commented on September 27, 2024

Thank you for this! I can confirm it works perfectly on Ubuntu. 👍

from dnscrypt-proxy-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.