Disable logging for one container in Docker-Compose

后端 未结 2 1747
鱼传尺愫
鱼传尺愫 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

    For a quick config example, something like

    version: '3'
    services:
        'postgres':
            image: postgres:9.6
            logging:
                driver: none 
    
    

提交回复
热议问题