Intregation of docker and Machin Learning
What is Machine Learning ?
Machine learning is the study of computer algorithms that improve automatically through experience and by the use of data. It is seen as a part of artificial intelligence.
What is Docker ?
Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.
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 the docker container.
- In Container you need to copy/create a machine learning model which you have created in Jupyter notebook
- Show the output.
1. I write my code in window (jupyter) and extract a file salary.pk1 as trained model
githu link of code --> git https://github.com/yuvi1998/summer_intrnship.git
2. Transfer file from base os to lunix os mine is redhut8 by using winscp tool
3. Launch a docker container of cenose latest version by
"docker run -it --machin_learning centos
4. Install python3 in container by " yum install python3 " docker centose provide preconfigure yum.Python3 also install pip3
5. Now install required libraries for Machine Learning with pip3 command.
6. Copy the model file salery.pk1 from host os to docker container
"docker cp salery.pk machin_learning:\ml"
7. Write the code in vi editor "vi slr.py"
8. Run python file and get output