Deploying ML Model On Top Of Docker Container…
Aug 11, 2021

🐳Step1: Install docker

🐳Step2: pull the centos image

🐳Step3: Start the docker

🐳Step4: run the docker container using image centos

🐳Step5: copy the dataset of Salary_Data.csv from base os into the docker container os1

🐳Step6: you can see that data set came inside docker.

🐳Step7: Install python3 inside container.

🐳Step8: Install the necessary python libraries for ML — Pandas and scikit-learn.


🐳Step9: Create the python script for training the ML model:
vi linearregression.py


🐳Step10: Create new script to load the trained model in it and predict the salary of employee by input the years of experience
vi predictor.py

🐳Step11: Run the script to predict the salary:

Here I have successfully trained our model ML model on top of Docker container and predicted the salary of employee.😍😍😍😍
Thanks for reading..
My LinkedIn: