diff --git a/libcontainer/cgroups/systemd/common.go b/libcontainer/cgroups/systemd/common.go index 91c314e09ea..24ef91ea2e7 100644 --- a/libcontainer/cgroups/systemd/common.go +++ b/libcontainer/cgroups/systemd/common.go @@ -306,7 +306,7 @@ func getUnitName(c *configs.Cgroup) string { // isDbusError returns true if the error is a specific dbus error. func isDbusError(err error, name string) bool { if err != nil { - var derr *dbus.Error + var derr dbus.Error if errors.As(err, &derr) { return strings.Contains(derr.Name, name) }