Disable logging for one container in Docker-Compose

后端 未结 2 1652
鱼传尺愫
鱼传尺愫 2020-12-24 11:42

I have a web application launched using Docker compose that I want to disable all logging for (or at the very least print it out to syslog instead of a file).

When m

相关标签:
2条回答
  • 2020-12-24 11:48

    You should be able to use logging feature. Try to set driver to "none"

    logging:
        driver: none
    
    0 讨论(0)
  • 2020-12-24 11:48

    For a quick config example, something like

    version: '3'
    services:
        'postgres':
            image: postgres:9.6
            logging:
                driver: none 
    
    
    0 讨论(0)
提交回复
热议问题