Skip to content

iotedge check "container-engine-logrotate" should not require rotate options when driver is "local" #6754

@damonbarry

Description

@damonbarry

Expected Behavior

iotedge check should not warn me that the "Container engine is not configured to rotate module logs..." when I use Docker's local log driver. The container engine is configured to rotate module logs; the local driver provides default values for max-size and max-file if the user does not explicitly give them.

Current Behavior

IoT Edge docs recommend that I use Docker's local log driver. When I follow that recommendation by creating daemon.json like this:

{
  "log-driver": "local"
}

...then the iotedge tool's "container-engine-logrotate" check emits a warning because I didn't explicitly add a log-opts object with max-file and max-size values to daemon.json.

Runtime Versions

  • aziot-edged [run iotedge version]: 1.4
  • Edge Agent [image tag (e.g. 1.0.0)]: 1.4
  • Edge Hub [image tag (e.g. 1.0.0)]: 1.4
  • Docker/Moby [run docker version]: any version that supports the local log driver

Additional Information

@drwill-ms originally filed this as doc issue MicrosoftDocs/azure-docs#100762. I'm filing this issue because I believe the fix should be made in iotedge check instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions