我正在使用Docker(1.12.1)运行RHEL(内核4.1.12),并且我的docker service dockerd
变成了僵尸[dockerd] <defunct>
PID 412
# ps -a | grep dockerd
1 412 412 412 ? -1 Zsl 0 23:28 [dockerd] <defunct>
它拥有资源,特别是设备 251:4 (/dev/dm-4
),这是设备映射器管理的:
# dmsetup ls
docker-251:0-6815748-pool (251:1)
docker-251:0-6815748-e97dd950.......59a691feaf6 (251:4)
# lsof | grep 251,4
dockerd 412 6844 root 1257u BLK 251,4 0t0 2439769 /dev/dm-4
因此,删除thin
条目docker-251:0-6815748-e97dd950.......59a691feaf6
失败
# dmsetup remove docker-251:0-6815748-e97dd950.......59a691feaf6
device-mapper: remove ioctl on docker-251:0-6815748-e97dd950.......59a691feaf6 failed: Device or resource busy
Command failed
除了重新启动整个系统之外,还有任何建议如何清理docker服务的剩余部分(例如,所有DM条目)?
僵尸进程真的有可能拥有资源吗?