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 : ► [ Ссылка ]
💚 Follow us on FB : ► [ Ссылка ]
🧡 Follow us on TG : ► [ Ссылка ]
💛 Follow us on YT : ► [ Ссылка ]
#devops #devopsforbeginners
#DevOps #beginners
#handsonlearning
In case, if you want to connect via linked in, My linked id is [ Ссылка ]
If you are a beginner or individual who wants to switch to/learn IT DevOps/cloud/Kubernetes. Then please join.
Youtube: [ Ссылка ]
Telegram: [ Ссылка ]
FB: [ Ссылка ]
Insta: [ Ссылка ]
[ Ссылка ]
![](https://s2.save4k.ru/pic/95zmJnz4iOo/maxresdefault.jpg)