Skip to content

Latest commit

 

History

History
25 lines (12 loc) · 555 Bytes

README.md

File metadata and controls

25 lines (12 loc) · 555 Bytes

Spring-Boot-Docker

To Build docker image and run Docker execute below commands:

docker images

docker build -f DockerFile.txt -t springbootdocker .

docker run -p 8080:8080 springbootdocker

To Push the docker image in docker hub

docker tag Image_ID dockerhub_username/image_name:docker_tag_name

ex: docker tag 3c2ffdb9f53e sumanth712bs/solrdemo:InitialImage

docker push dockerhub_username/image_name

ex: docker push sumanth712bs/solrdemo

To Pull docker image from docker hub

docker pull sumanth712bs/solrdemo:InitialImage