JavaEar 专注于收集分享传播有价值的技术资料

警告:" 无" 日志驱动程序没有可用的日志 (WARNING: no logs are available with the 'none' log driver)

I am following below url for logging driver

https://docs.docker.com/engine/admin/logging/overview/#configure-the-default-logging-driver

now, I want to remove this logging driver

I have remove file(daemon.json) from /etc/docker folder too.

But when I build container, system should always showing me warning

WARNING: no logs are available with the 'none' log driver

How can I get rid of this warning?

1个回答

    最佳答案

  1. 英文原文

    Finally solved.

    1) Delete daemon.json file from /etc/docker folder.

    2) Restart docker service.


    中文翻译

    终于解决了。

    1)从 / etc / docker 文件夹中删除 daemon.json 文件。

    2)重启docker service。

    Finally solved.

    1) Delete daemon.json file from /etc/docker folder.

    2) Restart docker service.

    终于解决了。

    1)从 / etc / docker 文件夹中删除 daemon.json 文件。

    2)重启docker service。