Containerizing Machine Learning
Containerizing Machine Learning
Docker :-
Docker is an open platform for developing, shipping, and running applications. Docker, an open source project was launched in 2013.
Its primary focus is to automate the deployment of applications inside software containers and the automation of operating system level virtualization on Linux. It's more lightweight than standard Containers and boots up in seconds.
- The crucial advantage of Docker is that it is agile.
- It has Consistent and Isolated Environment.
- It has cost effectiveness and fast deployement
Steps to be done:-
1)Pull the Docker container image of CentOS image from DockerHub and create a new container
for that we will use following commands
"pip3 install pandas"
"pip3 install numpy"
"pip3 install scikit-learn"
4)Now we will copy our file by using WinSCP software in our os
5)Now we will copy the whole file in container using below command
docker cp <src-path> <container>:<dest-path> ...
here my python file is machinelearning.py
and we are done!!
Thank you










Comments
Post a Comment