Machine Learning Model Over Docker Container

Simple Linear Regression code run on docker container

[docker_ce]
name=docker
baseurl=
https://download.docker.com/linux/centos/7/x86_64/stable/
gpgcheck=0
yum install docker-ce --nobest -y
#Will start docker services.
systemctl start docker
#Will make docker service permanent.
systemctl enable docker
docker run -it --name ml_model centos:latest
yum install python3 -y
pip3 install sklearn
pip3 install pandas
docker cp Salary_Data.csv c329c7e0d63c:/ml_ws
#Example
docker cp /home/(name)/(folder_name)/(file_name) (container_id):/(to_the_place_you_want_the_file_to_be)
docker pull rahul079/sklearn_centos:v1
docker run -it --name model_ml rahul079/sklearn_centos:v1
cd ml_ws/
python3 model.py

Developer | ARTH Learner @LinuxWorld | IIEC RISE Student | ML • DL • DevOps [MLOps] Enthusiast | AWS • GCP • Azure ☁️