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