ML project deployment on Docker Container
May 27, 2021
Step 1: Start your Docker Container on OS. Here we are going to use Centos OS for our ML project.
docker run -it centos
Step 2: Now install python latest version on oue docker image
dnf install python3
Step 3 : Install important libraries required for ML project work. In my case I have installed numpy and pandas
pip3 install pandas
pip3 install numpy
Step 4: Now copy your csv file from main OS to our Container(Centos)
docker cp /root/Salary.csv os_id:/root/
Step 5: Now create yout python file and write your ML project in it.
vim file_name.py
Step 6: Now run your python file to execute your ML project
python3 file_name.py