MrChip Posted July 2, 2021 Share Posted July 2, 2021 I'm running internetsystemsconsortium/bind9, and in its dockerfile (here) it has CMD ["/usr/sbin/named", "-g", "-c", "/etc/bind/named.conf", "-u", "bind"] The -g option tells named to run in foreground and to dump all logging to STDERR. This works but analysing logs is a pain - the GUI logs window for the docker updates while open, and when it does to scrolls back to the bottom, so you lose your place where you were looking. So I'd like to change the -g option to -f and use the named logging features to write logs to /var/log, which is an exposed VOLUME in the dockerfile. The docker run command can do this, if I've read the documentation correctly. Can this be done through the docker GUI configuration? Extra Parameters? Post Arguments? These two look like they might be the way to go, but my experience with dockers is limited for now, so I'm not sure about it. I'd appreciate some tips, please. Cheers, Bob Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.