DEV Community

Cover image for Running ML Model in Docker Container
Muhammad Sami Khanday
Muhammad Sami Khanday

Posted on

Running ML Model in Docker Container

Alt Text

What is Machine Learning?
Machine learning is the study of computer algorithms that improve automatically through experience and by the use of data. It is seen as a part of artificial intelligence.

What is Docker ?
Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.

How to Install Docker?
yum install docker-ce

How to Check if the docker is running ?
systemctl status docker
Alt Text

Downloading Centos:Latest Image from Docker HUB:
Alt Text

Lauching a new Centos Container :
Alt Text

Installing Required Packages :
Alt Text
Alt Text

Writing Code for our Machine Learning Model :
Alt Text

The Output of our Machine Learning Model :
Alt Text

Thanks!!

Top comments (0)