Deploying ML Model inside Docker Container

VinayGupta
May 27, 2021

Hey people..!! Let’s see How can we deploy Dummy ML Model inside Docker with centos container image.

TASK DETAIL DESCRIPTION
👉 Pull the Docker container image of CentOS image from DockerHub and create a new container
👉 Install the Python software on the top of the docker container
👉 In Container you need to copy/create a machine learning model which you have created in the Jupiter notebook

LET’S START WITH RHEL8

Welcome to Redhat8

PULL DOCKER IMAGE

Here, we are pulling in centos image for docker.

RUN DOCKER IMAGE

docker run -it — name=centos21 centos

INSTALL PYTHON3 INSIDE CONTAINER

INSTALL NEEDED LIBRARIES OF PYTHON

installed numpy, pandas, etc…

IMPORT DATASET INSIDE CONTAINER

copy dataset from rhel8 to centos

COPY/CREATE ML-CODE INSIDE CONTAINER

RUN YOUR ML-MODEL WITH PYTHON

Predict your salary from experience

LET’S GO BACK TO REDHAT8 INTERFACE

And here We are finishing our task. For any query feel free to ask me :)

THANK YOU

--

--

VinayGupta

Hey..! I'm Vinay Gupta, on the way of learning new technologies.