Docker log:containerid-json.log file disappear, troubleshooting and solutions

Source: Internet
Author: User

Troubleshoot the problem:

Run #docker Info

Check out the information and know about Docker's logging driver related theory: https://docs.docker.com/engine/admin/logging/overview/before this, the machine was overworked by colleagues, So Docker also re-download and is the latest version of 1.12.6, the original is 1.12.3.1.12.3 on the logging driver The default is Json-file, and 1.12.6 is Journald. This is what led to the original log path * * Json.log file could not be found for the reason. Solution:(1) Modify the Docker daemon configuration file, recommended path:/etc/sysconfig/docker# cat docker modified--log-driver=json-file Restart Docker Service: Service Docker restart (2) add parameter when starting Docker daemon with command # Dockerd--log-driver=json-file But this method is not the background to start Docker da Emon, not recommended.

Docker log:containerid-json.log file disappear, troubleshooting and solutions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.