Deploy Machine Learning Model on Docker

We are going to do all our practicals in RedHat Linux Enterprise 8

Step — 1: Configuring Yum Repository for Docker

we have to created a docker-ce.repo file and we have provided name, baseurl(official repository link), and gpgcheck. We disabled the software signature checking as we have provided the official link of Docker Community Edition.

Step — 2: Installing Docker Community Edition

Step — 3: Enabling the Docker Service in RHEL 8

I had to enable masquerading. It looked like docker already did this through iptables, but apparently, this needs to be specifically enabled for the firewall zone for iptables masquerading to work.

Step — 5: Pulling the Latest Centos Docker Image

"docker pull centos:latest "this command is we are going to use.

Step — 6: Create a Container with the help of docker image

Step — 7: Installing Python and necessary libraries (numpy , pandas ,scikit-learn)

use following commands for libraries

“ pip3 install numpy”

“ pip3 install pandas”

“ pip3 install scikit-learn”

note:

Step 8: Now , copy the whole folder into the container with the help of the cp cmd

Step 9:now use “python3 file_name” command to implement your model.

and we are done!!!!😊

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

Recommended from Medium

Can We Use Quantum Entanglement To Communicate Faster Than The Speed Of Light?

Deep Neural Networks Improve Radiologists’ Performance in Breast Cancer Screening

Introduction to Principal Component Analysis

A summary of Deep Reinforcement Learning (RL) Bootcamp: Lecture 5

How to set up the Intel Movidius Neural Compute Stick

Extracting faces using OpenCV Face Detection Neural Network

How-to setup GPU Accelerated TensorFlow & Keras on Windows 10 with Anaconda 3

Questions in Machine Learning and Predictive Analytics (Part 1)

Machine Learning and Predictive Analytics

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
Rachana Jaiswal

Rachana Jaiswal

More from Medium

Human Activity Recognition

Breadth First Search (BFS) | Graphs

https://cdn-images-1.medium.com/max/1600/1*1zMD-zalADWDSsvIK86rGA.jpeg

Image Steganography Using Deep Learning

Face Detection with ML KIT