Performing Machine Learning in Docker Container

Task 01 👨🏻‍💻
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.
Step 1 :-
Pull the Docker container image of CentOS image from DockerHub and create a new container :-
Pull image using command “docker pull centos:latest” and then launch container using command “docker run” :-


Step 2 :-
Install the Python software on the top of docker container :-
Install python using command “yum install python3”
Install pandas using “pip3 install sklearn pandas”


Step 3 :-
In Container you need to copy/create machine learning model which you have created in jupyter notebook :-
Upload the model and data in GitHub and clone it from the container image.


Step 4:-
Run the python code for prediction

So that’s all.
This is how we can do machine learning predictions inside a docker container.
If you find it helpful please upvote it.