VidyaMai S
2 min readMay 30, 2021

MACHINE LEARNING PROGRAM IN DOCKER

Hey, I am an MLops learner in Linux world informatics and today im uploading my assigned task1 here.

In this task by using linux software we have to install a container in the docker and run a machine learning program using python code inside the container.

so first we initialize docker and we install centos

After installing centos which we use as a container we run it by using run command. After launching/opening the container we install python3 by using yum install python3 command

once the python3 is installed. we install the libraries by using “pip3 install numpy”,pip3 install pandas”,pip3 install sklearn” etc., which are required for the program. After installing these libraries we check whether they are all properly installed or not by using “pip3 List”command.

then by using using “mkdir” command we create a file called Task1 inside the root, and we exit from centos container and by using copy command we copy the csv data file which contains data set, from localhost to Task1 which is in centos.

by using start command we launch into the centos container and launch python3 to write and execute and save the code.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response