Saritha will be in office on May 28,29,30th cuz there are no trainings! be alert and on time
0
comments
Posted in
Labels:
Docker
steps:
Go to the file where jar file is there
1. create a jar file with the path to jar file
*docker file not jar file
2. vi Dockerfile(insert the content in the CLI only) or touch Dockerfile(file is created , later we can add content by opening the file outsdie)
3.docker pull SOURCE REPOSITORY NAME(eg. prmangip/demorepository) ..
4. docker run SOURCE REPOSITORY NAME
tag is for versions of repository
5docker image ls
6. the latest image 's image id has to be tagged to the DESTINATION REPOSITORY name
7: docker login is before the 6th step
8. docker tag IMAGE ID DESTINATION REPOSITORY NAME
9. then check hub.docker.com 's our profile to check the latest tag which was pushed
10. Run our repository name : docker run DESTINATION REPOSITORY NAME
Go to the file where jar file is there
1. create a jar file with the path to jar file
*docker file not jar file
2. vi Dockerfile(insert the content in the CLI only) or touch Dockerfile(file is created , later we can add content by opening the file outsdie)
3.docker pull SOURCE REPOSITORY NAME(eg. prmangip/demorepository) ..
4. docker run SOURCE REPOSITORY NAME
tag is for versions of repository
5docker image ls
6. the latest image 's image id has to be tagged to the DESTINATION REPOSITORY name
7: docker login is before the 6th step
8. docker tag IMAGE ID DESTINATION REPOSITORY NAME
9. then check hub.docker.com 's our profile to check the latest tag which was pushed
10. Run our repository name : docker run DESTINATION REPOSITORY NAME
