Skip to content

Instantly share code, notes, and snippets.

View ptecza's full-sized avatar

Pawel Tecza ptecza

  • Samsung R&D Institute Poland
  • Warsaw, Poland
View GitHub Profile
@ptecza
ptecza / gist:5c29d0faf64b8bf0d4b0e415136bae8d
Last active August 2, 2023 07:30
Debugging an unhealthy Docker container (ID: b809982755c0)
This file has been truncated, but you can view the full file.
Aug 1 13:13:21 my-swarm-node-2 dockerd[2840456]: time="2023-08-01T13:13:21.994109632Z" level=debug msg="container mounted via layerStore: /var/lib/docker/overlay2/d81ae936691d74c6677330e91381a1d5d3df95a6e3beea95f302cec6f032e52d/merged" container=b809982755c023e430d27f1236617755088f5a49760226ff2756d101bb5548c8
Aug 1 13:13:22 my-swarm-node-2 dockerd[2840456]: time="2023-08-01T13:13:22.013766028Z" level=debug msg="container mounted via layerStore: /var/lib/docker/overlay2/d81ae936691d74c6677330e91381a1d5d3df95a6e3beea95f302cec6f032e52d/merged" container=b809982755c023e430d27f1236617755088f5a49760226ff2756d101bb5548c8
Aug 1 13:13:22 my-swarm-node-2 dockerd[2840456]: time="2023-08-01T13:13:22.212967236Z" level=debug msg="createSpec: cgroupsPath: system.slice:docker:b809982755c023e430d27f1236617755088f5a49760226ff2756d101bb5548c8"
Aug 1 13:13:22 my-swarm-node-2 dockerd[2840456]: time="2023-08-01T13:13:22.213273281Z" level=debug msg="bundle dir created" bundle=/var/run/docker/containerd/b809982755c023e430d27f123
ubuntu@my-swarm-node-2:~$ curl -s --unix-socket /var/run/docker.sock http://./debug/pprof/goroutine\?debug\=2 > docker.sock-debug.txt
ubuntu@my-swarm-node-2:~$ head -200 docker.sock-debug.txt
goroutine 2276198 [running]:
runtime/pprof.writeGoroutineStacks({0x560b9f8fa920, 0xc00c0001c0})
/usr/local/go/src/runtime/pprof/pprof.go:703 +0x70
runtime/pprof.writeGoroutine({0x560b9f8fa920?, 0xc00c0001c0?}, 0xc007a62000?)
/usr/local/go/src/runtime/pprof/pprof.go:692 +0x2b
runtime/pprof.(*Profile).WriteTo(0x560b9f7162c0?, {0x560b9f8fa920?, 0xc00c0001c0?}, 0xc?)
/usr/local/go/src/runtime/pprof/pprof.go:329 +0x14b
net/http/pprof.handler.ServeHTTP({0xc00072b9c1, 0x9}, {0x560b9f916940, 0xc00c0001c0}, 0x560b9f417940?)