registry.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  1. package containers
  2. import (
  3. "bytes"
  4. "fmt"
  5. . "github.com/coroot/coroot-node-agent/utils"
  6. "github.com/coroot/coroot-node-agent/utils/try"
  7. . "github.com/coroot/coroot-node-agent/utils/worker"
  8. log "github.com/sirupsen/logrus"
  9. "os"
  10. "regexp"
  11. "strings"
  12. "sync"
  13. "time"
  14. "github.com/coroot/coroot-node-agent/cgroup"
  15. "github.com/coroot/coroot-node-agent/common"
  16. "github.com/coroot/coroot-node-agent/ebpftracer"
  17. "github.com/coroot/coroot-node-agent/ebpftracer/tracer"
  18. "github.com/coroot/coroot-node-agent/flags"
  19. "github.com/coroot/coroot-node-agent/proc"
  20. "github.com/prometheus/client_golang/prometheus"
  21. klog "github.com/sirupsen/logrus"
  22. "github.com/vishvananda/netns"
  23. "inet.af/netaddr"
  24. )
  25. var (
  26. selfNetNs = netns.None()
  27. hostNetNsId = netns.None().UniqueId()
  28. agentPid = uint32(os.Getpid())
  29. containerIdRegexp = regexp.MustCompile(`[a-z0-9]{64}`)
  30. )
  31. type ProcessInfo struct {
  32. Pid uint32
  33. ContainerId ContainerID
  34. StartedAt time.Time
  35. }
  36. type Registry struct {
  37. reg prometheus.Registerer
  38. tracer *ebpftracer.Tracer
  39. events chan ebpftracer.Event
  40. hostConntrack *Conntrack
  41. containersById map[ContainerID]*Container
  42. containersByCgroupId map[string]*Container
  43. containersByPid map[uint32]*Container
  44. ip2fqdn map[netaddr.IP]string
  45. ip2fqdnLock sync.Mutex
  46. processInfoCh chan<- ProcessInfo
  47. whiteListRules WhiteListMap
  48. whiteLastUpdatedTime int
  49. connServer ServerWorker
  50. }
  51. var (
  52. uprobes []tracer.Uprobe
  53. uprobesMap map[string]tracer.Uprobe
  54. )
  55. func NewRegistry(reg prometheus.Registerer, kernelVersion string, processInfoCh chan<- ProcessInfo) (*Registry, error) {
  56. ns, err := proc.GetSelfNetNs()
  57. if err != nil {
  58. return nil, err
  59. }
  60. selfNetNs = ns
  61. hostNetNs, err := proc.GetHostNetNs()
  62. if err != nil {
  63. return nil, err
  64. }
  65. defer hostNetNs.Close()
  66. hostNetNsId = hostNetNs.UniqueId()
  67. err = proc.ExecuteInNetNs(hostNetNs, selfNetNs, func() error {
  68. if err := TaskstatsInit(); err != nil {
  69. return err
  70. }
  71. return nil
  72. })
  73. if err != nil {
  74. return nil, err
  75. }
  76. if err := cgroup.Init(); err != nil {
  77. return nil, err
  78. }
  79. if err := DockerdInit(); err != nil {
  80. klog.Warningln(err)
  81. }
  82. if err := ContainerdInit(); err != nil {
  83. klog.Warningln(err)
  84. }
  85. if err := CrioInit(); err != nil {
  86. klog.Warningln(err)
  87. }
  88. if err := JournaldInit(); err != nil {
  89. klog.Warningln(err)
  90. }
  91. ct, err := NewConntrack(hostNetNs)
  92. if err != nil {
  93. return nil, err
  94. }
  95. r := &Registry{
  96. reg: reg,
  97. events: make(chan ebpftracer.Event, 10000),
  98. hostConntrack: ct,
  99. containersById: map[ContainerID]*Container{},
  100. containersByCgroupId: map[string]*Container{},
  101. containersByPid: map[uint32]*Container{},
  102. ip2fqdn: map[netaddr.IP]string{},
  103. processInfoCh: processInfoCh,
  104. tracer: ebpftracer.NewTracer(kernelVersion, *flags.DisableL7Tracing, *flags.DisableE2ETracing, *flags.DisableStackTracing),
  105. whiteListRules: make(WhiteListMap),
  106. }
  107. // 初始化软负载集群节点
  108. proxyClient, clientErr := NewProxyClient(os.Getenv("CONFIG_ENDPOINT"), false)
  109. if clientErr == nil {
  110. // 负载健康检测
  111. try.Go(proxyClient.CheckEndpoints, CatchFn)
  112. log.Infof("New Proxy Client success.config_server is [%s]", "")
  113. } else {
  114. log.WithError(clientErr).Errorf("New Proxy Client error,Please check export CONFIG_ENDPOINT=")
  115. return nil, clientErr
  116. }
  117. r.connServer, err = NewServerHTTPWorker()
  118. if err != nil {
  119. log.Errorf("init connServer error:%s.", err)
  120. return nil, err
  121. }
  122. if err = reg.Register(r); err != nil {
  123. return nil, err
  124. }
  125. //_, err = r.getWhiteList()
  126. //if err != nil {
  127. // return nil, err
  128. //}
  129. go r.handleEvents(r.events)
  130. if err = r.tracer.Run(r.events); err != nil {
  131. close(r.events)
  132. return nil, err
  133. }
  134. return r, nil
  135. }
  136. func (r *Registry) Describe(ch chan<- *prometheus.Desc) {
  137. ch <- metrics.Ip2Fqdn
  138. }
  139. func (r *Registry) Collect(ch chan<- prometheus.Metric) {
  140. r.ip2fqdnLock.Lock()
  141. defer r.ip2fqdnLock.Unlock()
  142. for ip, fqdn := range r.ip2fqdn {
  143. ch <- gauge(metrics.Ip2Fqdn, 1, ip.String(), fqdn)
  144. }
  145. }
  146. func (r *Registry) Close() {
  147. r.tracer.Close()
  148. close(r.events)
  149. }
  150. func (r *Registry) handleEvents(ch <-chan ebpftracer.Event) {
  151. gcTicker := time.NewTicker(gcInterval)
  152. defer gcTicker.Stop()
  153. for {
  154. select {
  155. case now := <-gcTicker.C:
  156. _, err := r.getWhiteList()
  157. if err != nil {
  158. log.WithError(err).Errorf("connWhiteList error")
  159. }
  160. for pid, c := range r.containersByPid {
  161. if !common.IsOpenFilter() {
  162. verifyAttachConditions := c.verifyAttachConditions(r, pid)
  163. if verifyAttachConditions {
  164. err = c.RegisterAppInfo(r, pid)
  165. if err == nil {
  166. klog.WithField("pid", pid).Infoln("[Registry] Attach uprobes.")
  167. err = c.attachUprobes(r.tracer, pid)
  168. if err != nil {
  169. klog.WithField("pid", pid).WithError(err).Errorf("[Registry] Failed attach uprobes error!")
  170. } else {
  171. klog.WithField("pid", pid).Infoln("[Registry] Attach uprobes success!")
  172. }
  173. klog.WithField("pid", pid).Infoln("[Registry] Attach app stack.")
  174. err = c.stackTrace(r.tracer, pid)
  175. if err != nil {
  176. klog.WithField("pid", pid).WithError(err).Errorf("[Registry][end] Failed attach stack trace!")
  177. } else {
  178. klog.WithField("pid", pid).Infoln("[Registry] Attach Stack success!")
  179. }
  180. }
  181. }
  182. if !verifyAttachConditions && c.checkL7AttachReady() {
  183. // detach
  184. c.detachUprobes(pid)
  185. }
  186. }
  187. cg, err := proc.ReadCgroup(pid)
  188. if err != nil {
  189. delete(r.containersByPid, pid)
  190. if c != nil {
  191. c.onProcessExit(pid, false)
  192. }
  193. continue
  194. }
  195. if c != nil && cg.Id != c.cgroup.Id {
  196. delete(r.containersByPid, pid)
  197. c.onProcessExit(pid, false)
  198. }
  199. }
  200. activeIPs := map[netaddr.IP]struct{}{}
  201. for id, c := range r.containersById {
  202. if !c.Dead(now) {
  203. continue
  204. }
  205. for dst := range c.connectLastAttempt {
  206. activeIPs[dst.IP()] = struct{}{}
  207. }
  208. klog.Infoln("deleting dead container:", id)
  209. for cg, cc := range r.containersByCgroupId {
  210. if cc == c {
  211. delete(r.containersByCgroupId, cg)
  212. }
  213. }
  214. for pid, cc := range r.containersByPid {
  215. if cc == c {
  216. delete(r.containersByPid, pid)
  217. }
  218. }
  219. if ok := prometheus.WrapRegistererWith(setLabels(string(id),
  220. c.K8sContainer.ns,
  221. c.K8sContainer.podName,
  222. c.K8sContainer.containerName,
  223. c.K8sContainer.pid), r.reg).Unregister(c); !ok {
  224. klog.Warningln("failed to unregister container:", id)
  225. }
  226. delete(r.containersById, id)
  227. c.Close()
  228. }
  229. r.ip2fqdnLock.Lock()
  230. for ip := range r.ip2fqdn {
  231. if _, ok := activeIPs[ip]; !ok {
  232. delete(r.ip2fqdn, ip)
  233. }
  234. }
  235. r.ip2fqdnLock.Unlock()
  236. case e, more := <-ch:
  237. if e.Pid == uint32(os.Getpid()) {
  238. continue
  239. }
  240. if !more {
  241. return
  242. }
  243. switch e.Type {
  244. case ebpftracer.EventTypeProcessStart:
  245. c, seen := r.containersByPid[e.Pid]
  246. switch { // possible pids wraparound + missed `process-exit` event
  247. case c == nil && seen: // ignored
  248. delete(r.containersByPid, e.Pid)
  249. case c != nil: // revalidating by cgroup
  250. cg, err := proc.ReadCgroup(e.Pid)
  251. if err != nil || cg.Id != c.cgroup.Id {
  252. delete(r.containersByPid, e.Pid)
  253. c.onProcessExit(e.Pid, false)
  254. }
  255. }
  256. if c := r.getOrCreateContainer(e.Pid); c != nil {
  257. p := c.onProcessStart(e.Pid)
  258. if r.processInfoCh != nil && p != nil {
  259. r.processInfoCh <- ProcessInfo{Pid: p.Pid, ContainerId: c.id, StartedAt: p.StartedAt}
  260. }
  261. }
  262. case ebpftracer.EventTypeProcessExit:
  263. if c := r.containersByPid[e.Pid]; c != nil {
  264. c.onProcessExit(e.Pid, e.Reason == ebpftracer.EventReasonOOMKill)
  265. }
  266. delete(r.containersByPid, e.Pid)
  267. case ebpftracer.EventTypeFileOpen:
  268. if c := r.getOrCreateContainer(e.Pid); c != nil {
  269. c.onFileOpen(e.Pid, e.Fd)
  270. }
  271. case ebpftracer.EventTypeListenOpen:
  272. //fmt.Println("ebpftracer.EventTypeListenOpen==================", e.Pid)
  273. if c := r.getOrCreateContainer(e.Pid); c != nil {
  274. c.onListenOpen(e.Pid, e.SrcAddr, false)
  275. // cmdline InstanceID agentID
  276. if c.buildIDs(e.Pid) {
  277. c.eventReady()
  278. }
  279. if common.IsOpenFilter() && common.IsFilterPid(e.Pid) {
  280. c.TestRegisterAppInfo(r)
  281. c.attachUprobes(r.tracer, e.Pid)
  282. err := c.stackTrace(r.tracer, e.Pid)
  283. if err != nil {
  284. klog.Errorf("Stack trace error", err)
  285. }
  286. }
  287. } else {
  288. klog.Infoln("TCP listen open from unknown container", e)
  289. }
  290. case ebpftracer.EventTypeConnectionOpen:
  291. //fmt.Println("ebpftracer.EventTypeConnectionOpen==================", e.Pid)
  292. if c := r.getOrCreateContainer(e.Pid); c != nil {
  293. c.onConnectionOpen(e.Pid, e.Fd, e.SrcAddr, e.DstAddr, e.Timestamp, false)
  294. c.eventReady()
  295. if common.IsOpenFilter() && common.IsFilterPid(e.Pid) {
  296. c.TestRegisterAppInfo(r)
  297. c.attachUprobes(r.tracer, e.Pid)
  298. err := c.stackTrace(r.tracer, e.Pid)
  299. if err != nil {
  300. klog.Errorf("Stack trace error", err)
  301. }
  302. }
  303. } else {
  304. klog.Infoln("TCP connection from unknown container", e)
  305. }
  306. case ebpftracer.EventTypeListenClose:
  307. if c := r.containersByPid[e.Pid]; c != nil {
  308. c.onListenClose(e.Pid, e.SrcAddr)
  309. }
  310. case ebpftracer.EventTypeConnectionError:
  311. if c := r.getOrCreateContainer(e.Pid); c != nil {
  312. c.onConnectionOpen(e.Pid, e.Fd, e.SrcAddr, e.DstAddr, 0, true)
  313. } else {
  314. klog.Infoln("TCP connection error from unknown container", e)
  315. }
  316. case ebpftracer.EventTypeConnectionClose:
  317. srcDst := AddrPair{src: e.SrcAddr, dst: e.DstAddr}
  318. for _, c := range r.containersById {
  319. if c.onConnectionClose(srcDst) {
  320. break
  321. }
  322. }
  323. case ebpftracer.EventTypeTCPRetransmit:
  324. srcDst := AddrPair{src: e.SrcAddr, dst: e.DstAddr}
  325. for _, c := range r.containersById {
  326. if c.onRetransmit(srcDst) {
  327. break
  328. }
  329. }
  330. case ebpftracer.EventTypeL7Request:
  331. //fmt.Println("EventTypeL7Request")
  332. //fmt.Println("e.L7Request Payload:", string(e.L7Request.Payload))
  333. if e.L7Request == nil {
  334. continue
  335. }
  336. if c := r.containersByPid[e.Pid]; c != nil {
  337. if !c.checkL7AttachReady() {
  338. continue
  339. }
  340. ip2fqdn := c.onL7RequestApm(e.Pid, e.Fd, e.Timestamp, e.L7Request)
  341. r.ip2fqdnLock.Lock()
  342. for ip, fqdn := range ip2fqdn {
  343. r.ip2fqdn[ip] = fqdn
  344. }
  345. r.ip2fqdnLock.Unlock()
  346. }
  347. case ebpftracer.EventTypeFunEnt:
  348. if e.StackEvent == nil {
  349. continue
  350. }
  351. if c := r.containersByPid[uint32(e.StackEvent.Pid)]; c != nil {
  352. fmt.Printf("e.EventTypeFunEnt: TraceId:%d, Pid:%d, Location:%d, Goid:%d, TimeNs:%d, Ip:%X, CallerIp:%x, Bp:%x, CallerBp:%x\n", e.StackEvent.TraceId, e.StackEvent.Pid, e.StackEvent.Location, e.StackEvent.Goid, e.StackEvent.TimeNsStart, e.StackEvent.Ip, e.StackEvent.CallerIp, e.StackEvent.Bp, e.StackEvent.CallerBp)
  353. c.StackProcess2(*e.StackEvent, r.tracer)
  354. } else {
  355. // fmt.Printf("e.EventTypeFunEnt ErrorError: TraceId:%d, Pid:%d, Location:%d, Goid:%d, TimeNs:%d, Ip:%X, CallerIp:%x, Bp:%x, CallerBp:%x", e.StackEvent.TraceId, e.StackEvent.Pid, e.StackEvent.Location, e.StackEvent.Goid, e.StackEvent.TimeNsStart, e.StackEvent.Ip, e.StackEvent.CallerIp, e.StackEvent.Bp, e.StackEvent.CallerBp)
  356. // fmt.Printf("e.EventTypeFunEnt ErrorError: TraceId:%x, FPid:%x, Nid:%x, Level:%d\n", e.StackEvent.Fpid, e.StackEvent.Nid, e.StackEvent.Level)
  357. }
  358. }
  359. }
  360. }
  361. }
  362. func (r *Registry) getOrCreateContainer(pid uint32) *Container {
  363. if c, seen := r.containersByPid[pid]; c != nil {
  364. return c
  365. } else if seen { // ignored
  366. return nil
  367. }
  368. cg, err := proc.ReadCgroup(pid)
  369. if err != nil {
  370. if !common.IsNotExist(err) {
  371. klog.Warningln("failed to read proc cgroup:", err)
  372. }
  373. return nil
  374. }
  375. cgId := fmt.Sprintf("%s/%d", cg.Id, pid)
  376. if c := r.containersByCgroupId[cgId]; c != nil {
  377. r.containersByPid[pid] = c
  378. return c
  379. }
  380. if cg.ContainerType == cgroup.ContainerTypeSandbox {
  381. cmdline := proc.GetCmdline(pid)
  382. parts := bytes.Split(cmdline, []byte{0})
  383. if len(parts) > 0 {
  384. cmd := parts[0]
  385. lastArg := parts[len(parts)-1]
  386. if (bytes.HasSuffix(cmd, []byte("runsc-sandbox")) || bytes.HasSuffix(cmd, []byte("runsc"))) && containerIdRegexp.Match(lastArg) {
  387. cg.ContainerId = string(lastArg)
  388. }
  389. }
  390. }
  391. md, err := getContainerMetadata(cg)
  392. if err != nil {
  393. klog.Warningf("failed to get container metadata for pid %d -> %s: %s", pid, cg.Id, err)
  394. return nil
  395. }
  396. // add ns/workload/podname
  397. id, extensionTag := calcId(cg, md, pid)
  398. //klog.Infof("calculated container id %d -> %s -> %s", pid, cg.Id, id)
  399. if id == "" {
  400. if cg.Id == "/init.scope" && pid != 1 {
  401. klog.Infoln("ignoring without persisting", "cg", cg.Id, "pid", pid)
  402. } else {
  403. klog.Infoln("ignoring", "cg", cg.Id, "pid", pid)
  404. r.containersByPid[pid] = nil
  405. }
  406. return nil
  407. }
  408. if c := r.containersById[id]; c != nil {
  409. //klog.Warningln("id conflict:", id)
  410. if cg.CreatedAt().After(c.cgroup.CreatedAt()) {
  411. c.cgroup = cg
  412. c.metadata = md
  413. c.runLogParser("")
  414. if c.nsConntrack != nil {
  415. _ = c.nsConntrack.Close()
  416. c.nsConntrack = nil
  417. }
  418. }
  419. setK8sTag(c, extensionTag, pid)
  420. r.containersByPid[pid] = c
  421. r.containersByCgroupId[cgId] = c
  422. return c
  423. }
  424. c, err := NewContainer(id, cg, md, r.hostConntrack, pid)
  425. if err != nil {
  426. klog.Warningf("failed to create container pid=%d cg=%s id=%s: %s", pid, cg.Id, id, err)
  427. return nil
  428. }
  429. //klog.Infoln("detected a new container", "pid", pid, "cg", cg.Id, "id", id)
  430. // add ns/workload/podname/pid/ctype
  431. //sType := fmt.Sprintf("%d", cg.ContainerType)
  432. setK8sTag(c, extensionTag, pid)
  433. if err := prometheus.WrapRegistererWith(setLabels(string(id),
  434. extensionTag[Namespace],
  435. extensionTag[PodName],
  436. extensionTag[ProcessName],
  437. fmt.Sprintf("%d", pid)), r.reg).Register(c); err != nil {
  438. klog.Warningln("failed to register container:", err)
  439. return nil
  440. }
  441. r.containersByPid[pid] = c
  442. r.containersByCgroupId[cgId] = c
  443. r.containersById[id] = c
  444. return c
  445. }
  446. func calcId(cg *cgroup.Cgroup, md *ContainerMetadata, pid uint32) (ContainerID, map[string]string) {
  447. extensionTag := map[string]string{Namespace: "", Workload: "", PodName: "", ProcessName: ""}
  448. if cg.ContainerType == cgroup.ContainerTypeSystemdService {
  449. if strings.HasPrefix(cg.ContainerId, "/system.slice/crio-conmon-") {
  450. return "", extensionTag
  451. }
  452. return ContainerID(cg.ContainerId), extensionTag
  453. }
  454. if cg.ContainerType == cgroup.ContainerTypeStandaloneProcess {
  455. procName := proc.GetProcName(pid)
  456. extensionTag[ProcessName] = procName
  457. return ContainerID(fmt.Sprintf("/%s/%s/%d", "standalone", proc.GetProcName(pid), pid)), extensionTag
  458. }
  459. switch cg.ContainerType {
  460. case cgroup.ContainerTypeDocker, cgroup.ContainerTypeContainerd, cgroup.ContainerTypeSandbox, cgroup.ContainerTypeCrio:
  461. default:
  462. return "", extensionTag
  463. }
  464. if cg.ContainerId == "" {
  465. return "", extensionTag
  466. }
  467. if md.labels["io.kubernetes.pod.name"] != "" {
  468. pod := md.labels["io.kubernetes.pod.name"]
  469. namespace := md.labels["io.kubernetes.pod.namespace"]
  470. name := md.labels["io.kubernetes.container.name"]
  471. if cg.ContainerType == cgroup.ContainerTypeSandbox {
  472. name = "sandbox"
  473. }
  474. if name == "" || name == "POD" { // skip pause containers
  475. return "", extensionTag
  476. }
  477. extensionTag[Namespace] = namespace
  478. extensionTag[Workload] = ""
  479. extensionTag[PodName] = pod
  480. extensionTag[ProcessName] = name
  481. return ContainerID(fmt.Sprintf("/k8s/%s/%s/%s", namespace, pod, name)), extensionTag
  482. }
  483. if taskNameParts := strings.SplitN(md.labels["com.docker.swarm.task.name"], ".", 3); len(taskNameParts) == 3 {
  484. namespace := md.labels["com.docker.stack.namespace"]
  485. service := md.labels["com.docker.swarm.service.name"]
  486. if namespace != "" {
  487. service = strings.TrimPrefix(service, namespace+"_")
  488. }
  489. if namespace == "" {
  490. namespace = "_"
  491. }
  492. return ContainerID(fmt.Sprintf("/swarm/%s/%s/%s", namespace, service, taskNameParts[1])), extensionTag
  493. }
  494. if md.name == "" { // should be "pure" dockerd container here
  495. klog.Warningln("empty dockerd container name for:", cg.ContainerId)
  496. return "", extensionTag
  497. }
  498. return ContainerID("/docker/" + md.name), extensionTag
  499. }
  500. func getContainerMetadata(cg *cgroup.Cgroup) (*ContainerMetadata, error) {
  501. switch cg.ContainerType {
  502. case cgroup.ContainerTypeDocker, cgroup.ContainerTypeContainerd, cgroup.ContainerTypeSandbox, cgroup.ContainerTypeCrio:
  503. default:
  504. return &ContainerMetadata{}, nil
  505. }
  506. if cg.ContainerId == "" {
  507. return &ContainerMetadata{}, nil
  508. }
  509. if cg.ContainerType == cgroup.ContainerTypeCrio {
  510. return CrioInspect(cg.ContainerId)
  511. }
  512. var dockerdErr error
  513. if dockerdClient != nil {
  514. md, err := DockerdInspect(cg.ContainerId)
  515. if err == nil {
  516. return md, nil
  517. }
  518. dockerdErr = err
  519. }
  520. var containerdErr error
  521. if containerdClient != nil {
  522. md, err := ContainerdInspect(cg.ContainerId)
  523. if err == nil {
  524. return md, nil
  525. }
  526. containerdErr = err
  527. }
  528. return nil, fmt.Errorf("failed to interact with dockerd (%s) or with containerd (%s)", dockerdErr, containerdErr)
  529. }