Deploying Machine Learning model inside Docker container

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

Let’s Start :

1. Pull Image from Docker Hub:

command : docker pull centos:latest

2. Launch Container using above Image :

command : docker run -it — name container_name centos:latest

3. Install Python interpreter :

command : yum install python3 -y

4. Install numpy module

command : pip3 install numpy

5. Install sklearn module

command: pip3 install sklearn

6. Copy file to docker container :

command : docker cp source_path to container_is/destination_path

7. Check File copied or not :

8. Run Model Regression python file :

command : python3 file_name.py

TASK COMPLETED !!!

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Artificial Intelligence for learning Sign Language

Mechanism of Action (MoA) Prediction

Back-Propagation Algorithm on Simple Real-Time Embedded system

Classifying images of everyday objects using a neural network

[Review] 2.2 Sequence-to-Segments Networks for Segment Detection

Popular Machine Learning Models and Libraries

Bye to Trial and Error Activation Functions of Neural Networks II: Proposed Jameel’s ANNAF…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
SIBAYAN BAG

SIBAYAN BAG

More from Medium

An Intro to Transaction Cost Analysis

Using Machine Learning to study the pattern of customer churn

Introduction to sparse matrices — Part 1

Data Profiling in Machine learning