Giter Club home page Giter Club logo

Comments (2)

vergoh avatar vergoh commented on August 11, 2024

If you just want to see the currently active configuration content then you can either run docker exec vnstat vnstat --showconfig or docker exec vnstat cat /etc/vnstat.conf. If you'd however want to have the possibility of modifying the configuration yourself, for example when the provided environment variables don't provide the configurability you'd want, then you'll have to first extract the current configuration file with either of the commands shown above, then do the wanted changes to the now local file and start the vnStat container again but this time map the local file as a volume which replaces the container's internal /etc/vnstat.conf.

Let me know if you'd prefer to have more detailed examples. If such is needed then please indicate if you are using docker run directly or docker-compose. The later usually becomes more practical especially as soon as any configuration is needed.

from vnstat-docker.

spammads avatar spammads commented on August 11, 2024

Sorry for the late reply.
I used docker-compose and mapped /etc/vnstat.conf to a corresponding file on the host. This works.
Really appreciate your work with this tool.
Works like a charm.

from vnstat-docker.

Related Issues (13)

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.