?????????????????? ?????????????? ???????????????? ?????????? ???????????? ???????????? ??????????????????
Chandni Ahuja
DevOps Engineer | Immediate Joiner | Driving Cloud Efficiency with AWS, Docker and Kubernetes | Proficient in Cloud Infrastructure Automation with Terraform
TASK-1
???????? ????????????????????????
?? 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
Machine Learning:
Machine Learning is a part of Artificial Intelligence that focuses on the study of computing and mathematical algorithms and data sets to make decisions without writing manual code. In other words, machine learning is writing code that lets machines make decisions based on pre-defined algorithms on provided datasets.
Step 1
Check the status of Docker using command:
"systemctl status docker"
Step 2
Pull the Docker container image of CentOS image from DockerHub using command :
"docker pull centos:latest"
Pulling from library/centos
Step 3
Creating a new container and launching it
"Docker run –it - -name Task1 centos:latest"
Here, Task1 is the name of the container
Step 4
Installing python3
Command: "yum install python3 –y"
Step 5
Installing libraries of python
1. Install pandas:
"pip3 install pandas"
Step 6
2. Install sklearn:
"pip3 install sklearn"
Step 7
? Creating a directory in the container to copy the ML model which we have created in jupyter notebook
Step 8
In base OS, To copy the ML model we run the following command
"Docker cp /root/Documents/ML/model_name container_name:/path"
Step 9
By using "ls" command we can see the files which are there in our container
Step 10
Use "vi" command to create the text editor file with the extension ".py" and load the model
Step 11
By using "python3 model_name.py" command run the python file
Step 12
Enter the experience and it will predict the salary
Step 13
Model has predicted the salary
?????????? ??????!!
★ DevOps Engineer@Ongraph | ★ 4x AWS Certified | ★ RedHat Certified Engineer | ★ Technical Content Creator @Medium
3 年Nice work Keep learning Chandni Ahuja ...??