In this story, I am gonna share you how to train a ML model upon a docker container.
First pull the image file of a container. Here I am using centos image. I am also launching a container out of it.
Next try to install python3 software but before that try to update your yum repo. In my case there was some problem w.r.t DNS. So I used below commands to get rid of this error as shown in screenshot.
Now , I tried to install Python3, Numpy, Pandas, Sklearn.
Now I tried to import csv file from my base os to docker container as below:
Now , try to train a simple ML Linear Regression model as below:
That’s it. We are done in executing a simple ML model upon a docker container.