Machine Learning Model Inside The Docker Container

Tanmay
1 min readMay 27, 2021

--

Welcome to my article based on TASK 1 of Machine Learning inside the Docker Container (Linux World MLOps summer internship 2021)

{

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 and the libraries which require to run the model

πŸ‘‰ In Container you need to copy/create machine learning model which you have created in jupyter notebook

}

================================================================================

Step 1: Check Docker is installed or not. <docker info>

Step 2: Pull the Centos image from the Docker Hub. <docker pull centos:latest>

Step 3: Create a Container with a help of centos image. <docker run -t -i centos>

Step 4: check the Container is started or not.

Step 5: Download Python Software inside the Docker Container.<yum install python3 -y>

Step 6: Install all the libraries which your Machine Learning Model requires.<pip3 install pandas>,<pip3 install numpy>,<pip install scikit-learn>

Step 7: Copy your model inside Container and check whether the container is copied or not

Step 8: <docker cp Model_File_name Container_name:/home> we need to run this command in our base os i.e Rhel 8

Step 9: Create the model file

Step10: Run the Created Model file

That’s All

Thank You For Giving Great Time.

~Tanmay Pathare

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response