Closed chenbh closed 3 years ago
Reported on discord (https://discord.com/channels/219899946617274369/413770960089382922/862856028247556146)
The network files created by the containerd runtime is never cleaned up https://github.com/concourse/concourse/blob/c88bb501a05567ee40126d62f9b0e4776be31c06/worker/runtime/cni_network.go#L254
/tmp
No leftover files/dir
The hosts, hostname, and resolv.conf file are left behind
Hopping on one of our CI workers gave 27k folders in /tmp, and 272k on one of the older hush-house workers!
Also, should these files really be in /tmp? There's a reason we have CONCOURSE_WORK_DIR.
CONCOURSE_WORK_DIR
The directories under /tmp are named after a container's handle. If you don't see a matching uuid when running fly containers or in the containers table in the db, then you can safely delete those directories.
fly containers
Reported on discord (https://discord.com/channels/219899946617274369/413770960089382922/862856028247556146)
Summary
The network files created by the containerd runtime is never cleaned up https://github.com/concourse/concourse/blob/c88bb501a05567ee40126d62f9b0e4776be31c06/worker/runtime/cni_network.go#L254
Steps to reproduce
/tmp
fileExpected results
No leftover files/dir
Actual results
The hosts, hostname, and resolv.conf file are left behind
Additional context
Hopping on one of our CI workers gave 27k folders in
/tmp
, and 272k on one of the older hush-house workers!Also, should these files really be in
/tmp
? There's a reason we haveCONCOURSE_WORK_DIR
.Triaging info