Deploying ML Model On Top Of Docker Container…

Dolly Mehra
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:

https://www.linkedin.com/in/dollymehra/

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Dolly Mehra
Dolly Mehra

No responses yet

Write a response