Containerizing ML model — Task0 1


STEP 2: START and check the SERVICE of Docker

systemctl start docker
systemctl status docker

STEP 3: PULL the Docker Image of centos

docker pull centos:latest

STEP 4: LAUNCH a docker container using the run command

docker run -it --name <name for your container> centos:latest

To Download:

→ Python

yum install python36

→ scikit-learn

pip3 install scikit-learn

→ git

yum install git -y

→ pandas

pip3 install pandas

STEP 5: Download your dataset in the docker container

git clone <your git repo url>

Dataset : salary.csv : :

STEP 6: RUN your python files


Finally, the model is trained and we got the Desired Result — Salary Prediction model !


docker commit <container name> <image name>:versiondocker login
docker tag <image name>:version <docker repo name>
docker push <docker repo name>

Successfully pushed now you can pull your own custom image and use the ML model whenever needed.

My docker image for Salary Prediction ML model:

docker pull 181930/salarypred:v1





Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Upgrading from Mvvmcross 5 to Mvvmcross 6.2

9 tips to improve RSpec maintainability

Python Projects For Portfolio With Source Code| Ihtesham Haider

Arknights Squad Randomizer (Phase 1 Project)

Factory Design Pattern in Java

A Beginner’s Practical Guide to Containerisation and Chaos Engineering with LitmusChaos 2.0

Using Gtp2 to Write Like an Intellectual.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sangeeth Sahana D

Sangeeth Sahana D

More from Medium

End to end MLflow model serving example on Databricks through REST API endpoint — Part 1

Part IV — Model Deployment and Performance Evaluation

What is AIaaS and how to build it

How Git + DVC (Data version Control) help in Data and Model Management