Docker Notes step by step
1.create DockerHub Account
2.Connect DockerHub through CLI
3.Create docker image
4.add tag & create repository
5.upload docker image into DockerHub
You must Connect to DockerHub FROM your server
with the help of CLI I can able to connect my DockerHub Account
to connect docker hub account from your server
just use command...
1.connect dockerHub through CLI
-------------------------------
docker login
purpose of docker login command ?
---------------------------------
whenever we push the image into dockerhub
before push the image into docker hub, we must connect DockerHub
so connecting purpose we use docker login command
so that I can able to push the docker image into DockerHub
1.create docker image
--------------------------
ans:docker build -t kkiamge .
2.add tag & create repository inside my DockerHub
-------------------------------------------------
ans: docker tag kkimage kk1567811/vansro:1.0.0
1.image name:kkimage
2.username:kk1567811
3.repo name:vansro
4.tag:1.0.0
3.push the docker image into DockerHub
---------------------------------------
ans: docker push kk1567811/vansro:1.0.0
how to push the docker image into your DockerHub
please write down a statement
-----------------------------------------------
docker push kk1567811/vansro:1.0.0
1.docker push
--------------
this is the command in docker
which is used to upload or push the docker image from
our local machine to DockberHub
you are uploading this image into cloud storage ..that is DockerHub
2.kk1567811
--------------
this is our DockerHub user name
every docker hub is having unique username
3.vansro
--------
this is repository name in your DockerHub
it is like a folder in your DockerHub
it is like a project name where our images will be stored
we can pull this image whenever it requires
4.1.0.0
--------
version
this is tag name for your docker image
--------
version
this is tag name for your docker image
Comments
Post a Comment