Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 319 Bytes

docker.md

File metadata and controls

14 lines (10 loc) · 319 Bytes

Docker

Run debug container

docker run -it --pid=host centos:8 bash

Release file descriptor of deleted files

docker_pid=$(cat /var/run/docker.pid)
gdb -p $docker_pid <<< "$( ls /proc/$docker_pid/fd -l --time-style=+'%s' | grep -E 'deleted' | awk '{ printf("p close(%s)\n", $7)}')" >/dev/null