简体   繁体   English

Docker Container正在运行,但Docker内部的程序突然停止

[英]Docker Container is running but the program inside the docker stops abruptly

I have a Python Program which runs perfectly as standalone program Time Taken - 5 days 我有一个可以作为独立程序完美运行的Python程序耗时-5天

I dockerize the program and execute it with 10% of dataset docker runs and the program executes successfully 我对程序进行dockerize并使用docker run的10%的数据集执行该程序,该程序成功执行

When i use full dataset(108K records) and build and run the new docker The Docker starts running for 4 hours and logs the steps perfectly 当我使用完整的数据集(108K条记录)并构建并运行新的Docker时,Docker开始运行4小时并完美记录步骤

After 4 hours no logging is done when i inspect using htop no resource is being used htop image - sys resource use 4小时后,当我检查使用htop时没有完成日志记录时,没有使用资源htop映像-系统资源使用

for docker stats it is not using any resource docker stats image 对于docker stats,它没有使用任何资源docker stats映像

For docker ps it shows the image is running docker ps image 对于docker ps,它显示映像正在运行docker ps image

Kindly let me know what I am doing wrong 请让我知道我在做什么错

Is docker has any limits to running a program or logging data 码头工人是否对运行程序或记录数据有任何限制

Are you running docker directly on linux or are you using OSX/Windows for it, if so, you might be hitting memory limits. 您是在Linux上直接运行docker还是在使用OSX / Windows,如果这样,则可能是内存不足。

If running on the cloud (AWS...) check that the machine has no expiry or something like that. 如果在云(AWS ...)上运行,请检查计算机是否没有过期或类似内容。 I recommend trying to run that locally first. 我建议尝试先在本地运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM