Closed strarsis closed 7 years ago
At the moment there is no such option. As a workaround you can do docker exec -it apt-cacher-ng tail -f /var/log/apt-cacher-ng/apt-cacher.log
@sameersbn in my dockerfile I create symlinks for both /var/log/apt-cacher-ng/apt-cacher.log and /var/log/apt-cacher-ng.err. Both then simply point to /dev/stdout and /dev/stderr, respectively.
Its been a while, but the thing about the symlinking is that it requires apt-cacher-ng to be launched as the root user. IMO it's not worth the risk.
docker exec -it apt-cacher-ng tail -f /var/log/apt-cacher-ng/apt-cacher.log
is the recommended way to view the logs of the apt-cache-ng daemon in the image. I will document this option and close this issue.
actually it has already been documented. closing...
It would be great if apt-cacher-ng could log to stdout so one can attach to the logs using docker logs to view the current requests made to it for debugging.