Docker container crashes after execution of python script Docker container crashes after execution of python script docker docker

Docker container crashes after execution of python script


In CF, applications are not supposed to finish. But if your script only just prints something, it'll perform an exit 0 afterwards. Thus the app container is stopped and CF registers a "crash", and will then restart the application in accordance with the app lifecycle:https://docs.cloudfoundry.org/devguide/deploy-apps/app-lifecycle.html