Performing Machine Learning in Docker Container

Task 01 👨🏻‍💻

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.

Step 1 :-

Pull the Docker container image of CentOS image from DockerHub and create a new container :-

Pull image using command “docker pull centos:latest” and then launch container using command “docker run” :-

Step 2 :-

Install the Python software on the top of docker container :-

Install python using command “yum install python3”

Install pandas using “pip3 install sklearn pandas”

Step 3 :-

In Container you need to copy/create machine learning model which you have created in jupyter notebook :-

Upload the model and data in GitHub and clone it from the container image.

Step 4:-

Run the python code for prediction

So that’s all.

This is how we can do machine learning predictions inside a docker container.

If you find it helpful please upvote it.

Connect with me on LinkedIn | GitHub

--

--

--

Lifelong learning technologies

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

Recommended from Medium

Use kaniko to build Docker images

Unfinished business: Scrumbut and Immutability

Optimizing Your CLI Experience by Knowing How To Pipe

Symfony4 Kubernetes Local Development Environment #3 Ksync

Java Multithreading, Concurrency, and Parallelism — Part 17.1

WhatsApp clone Development Company

Kotlin education

Building a website + blog with Gridsome, Tailwindcss, and Contentful Pt. 2 of 2

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
Arnab Saha

Arnab Saha

Lifelong learning technologies

More from Medium

How to implement client and server in Flask for your AI/ML models with code

Perform ETL (Extraction, Transformation, Loading) Using Python to Scrape Data

A Classification Model with Pyspark

Test Machine Learning Programs — Part 1: What is Machine Learning?