Mega Menu

Tuesday, April 21, 2020

Docker - Build and publish custom image to repository

Key Steps Involved -
  • Create a DockerFile
  • Build docker image with appropriate tag
    • docker build . -t rajesh.sripathi/test-web-app
  • Login to docker hub
    • docker login
  • Push the Image
    • docker push test-web-app

By default the image gets pushed to a public repository. To push it to private repository,
    •     Login to the hub, and create the repository first, and mark it as private. Then when you push to that repo, it will be private.

No comments:

Post a Comment