Deploying ML Model inside Docker Container
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
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
IMPORT DATASET INSIDE CONTAINER
COPY/CREATE ML-CODE INSIDE CONTAINER
RUN YOUR ML-MODEL WITH PYTHON
LET’S GO BACK TO REDHAT8 INTERFACE
And here We are finishing our task. For any query feel free to ask me :)