0 0 Share PDF

How to enable debug mode on `containerd` without changing Docker Engine log level

Article ID: KB001019


When troubleshooting Docker Enterprise, it may be necessary to enable debug-level logging on the containerd component without necessarily changing the log level of the Docker engine.


  1. To enable debug mode for containerd only, edit the existing /etc/containerd/config.toml file, and uncomment and set the level parameter to "debug". When finished, the [debug] section should look like the following:

    #  address = "/run/containerd/debug.sock"
    #  uid = 0
    #  gid = 0
    level = "debug"
  2. Restart the containerd service:

    systemctl restart containerd.service

Note: restarting containerd will restart all containers on the host.