I had built my project based from your Dockerfile and would like to see if you have experienced the same issue.
Within a docker container (based on alpine linux) with Python 2.7 installed, I receive a Segmentation Fault error that kills the entire process and then the container exits.
This DOES NOT happen during fitting but only happens when I use the loaded model to predict. My current script uses XGBoost alongside SKLearn's GridSearchCV. The gsv.fit method runs perfectly fine and then I save the gsv.best_estimator_ as a pickle to be later used. When I load the model from pickle and calls method predict, the container hangs for a while and exits with Segmentation Fault error message. (or sometimes the python script is Killed by the container.)
Build Specifications
Based on this repo's Dockerfile
When I run pip list here is the result for xgboost
xgboost 0.80
Here is a full list of other python libraries just in case
This is a cloned post from what I posted directly on dmlc/xgboost issues page. You can find the original post here:
Segmentation Fault / Killed
when run on Python inside Docker Container (Alpine) #3649I had built my project based from your Dockerfile and would like to see if you have experienced the same issue.
Within a docker container (based on alpine linux) with Python 2.7 installed, I receive a
Segmentation Fault
error that kills the entire process and then the container exits.This DOES NOT happen during fitting but only happens when I use the loaded model to predict. My current script uses XGBoost alongside SKLearn's GridSearchCV. The
gsv.fit
method runs perfectly fine and then I save thegsv.best_estimator_
as a pickle to be later used. When I load the model from pickle and calls methodpredict
, the container hangs for a while and exits withSegmentation Fault
error message. (or sometimes the python script is Killed by the container.)Build Specifications Based on this repo's Dockerfile When I run
pip list
here is the result for xgboostHere is a full list of other python libraries just in case
Steps to Reproduce
model.predict(dataframe)
What happens next Either the container Kills this python process OR I get an error that says
Segmentation fault
and the container dies.