👉 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
Solution:-
Step1:-
First I have to restart the docker and check the status
“systemctl restart docker”
“systemctl enable docker”
“systemctl status docker”
Step 02 : Pull the Centos Image from Docker hub.
“ docker pull centos:8“
Step 03 : Create a Container with the help of Centos image.
“ docker run -i t — name=container_name centos:8 “
Step 04 : Container has been start
Step 05 : Download vim inside a container
Step 06 :
Download Python softwere inside Container.
“yum install python3”
Step 07 : Install all the libararies your Machine Learning model depend.
“pip3 install numpy”
“ pip3 install pandas”
“ pip3 install scikit-learn”
Step 08 : Copy Your model Inside Container.
“docker cp Model_file_name Container name:/model_file_name”
Step 09 : Create a Model file.
Step 10 : Last step is Run the Model
Final Result is here.
— — — — — — — — — — — — — — — — — — — — — — — — — — — — →
That’s All
Thank you
→ Priyansh Kushwaha