Machine Learning Inside Docker
Task Description
👉 Pull the Docker container image of CentOS image from DockerHub and create a new container
👉 Install the Python software on the top of docker container
👉 In Container you need to copy/create machine learning model which you have created in jupyter notebook
👉 Create a blog/article/video step by step you have done in completing this task.
👉 Submit the link of blog/article or video
So let's start...
Check Docker is Installed or not , using "systemctl status docker".
Pulling CentOS image from DockerHub using "Docker pull <image name>".
Install Python inside container , using "yum install python3".
Install all the libararies your machine learning model depend:
"pip3 install numpy"
"pip3 install pandas"
"pip3 install scikit-learn"
Copying ML code in Container from BaseOS and Run Program
Here, the model is trained and stored in score.pk1 file and in score.py file, it is loaded to find the prediction value. So, both the files are being copied in the container and running the code.
Task completed successfully!!
Hope you find helpful !!
Thank you !!