In this video, I'll show you 4 main steps required to push the docker image to the docker hub registry.
how to create to docker file
How to create a repository in the docker hub.
how to create a docker image from a docker file
How to push the newly created docker image into the docker hub registry repository.
docker image complete tutorial for absolute beginners
How to create docker image with labs
It's a super simple step to do these tasks.
Make sure you stick around to the end because I'm gonna share with you an incredibly simple step to create a pod in the Kubernetes cluster using the newly created docker image.
The prerequisite for this lab exercise is
Docker should be installed on your laptop and docker should be running state.
Docker hub free account is created
Git bash is installed to run the Linux commands
Creation of Dockerfile
Open terminal/git bash, and type docker images. As you could see there are no images are present.
Create a folder as a docker
Create a file called Dockerfile inside the docker folder.
Add the below in Dockerfile and save the file.
FROM nginx
COPY index.html /usr/share/nginx/html/index.html
Here we are extending the docker Nginx image, which is mentioned in the first line.
and then overriding the index.html file with our own index.html
Create index.html and fill data into it.
Docker build
"If you're finding value in this video, give it a thumbs-up.It really makes a huge difference.
"Hey, it's Sangamesh here from Beginner Academy,
where we help you grow in the cloud and DevOps-related technologies."
#devops #devopsforbeginners
#DevOps #beginners
#handsonlearning
💛 Follow us on IG : ► / beginner.academy
💚 Follow us on FB : ► / 580314426414395
🧡 Follow us on TG : ► t.me/beginner_...
💛 Follow us on YT : ► www.youtube.co...
#devops #devopsforbeginners
#DevOps #beginners
#handsonlearning
In case, if you want to connect via linked in, My linked id is / sangamesh-kotni-4b92989
If you are a beginner or individual who wants to switch to/learn IT DevOps/cloud/Kubernetes. Then please join.
RU-vid: www.youtube.co...
Telegram: t.me/beginner_...
FB: / 580314426414395
Insta: / beginner.academy
beginner.academy/
1 окт 2024