启用实时还原后,即使Docker守护进程停止运行,docker容器也应继续运行。
在此守护程序停机期间,docker日志记录驱动程序是否继续从正在运行的容器转发stdout / stderr?
我问b / c我不确定日志记录驱动程序是否依赖于docker daemon进程。
最佳答案
文档提示我进入,并且我能够验证此行为。
从the docs:
If the daemon is down for a long time, running containers may fill up the FIFO log the daemon normally reads. A full log blocks containers from logging more data. The default buffer size is 64K. If the buffers fill, you must restart the Docker daemon to flush them.
AFAIK,每个容器进程将其日志通过管道传输到其对应的
docker-containerd-shim
进程,然后将日志通过管道传输到dockerd
。如果dockerd
关闭,则日志将保留在缓冲区中,并在备份时写入dockerd
。但是,如文档所指定,如果在备份docker守护程序之前缓冲区已满,您将开始丢失任何其他日志。
关于docker - dockerd关闭时,docker日志记录驱动程序能否继续工作? (启用实时还原),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48550938/