Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 721 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 721 Bytes

Spring-Docker

This Project demonstrates how to containerize the java application using the Docker

Containerize the Application

  1. Create a Project
  2. Add a docker file with name "Dockerfile"
  3. Create image with base of your choice
  4. Build a docker image
  5. Run or Deploy the instances

Deploy the images to scale

DockerFile

Docker Commands

  • To build image
    • docker build -f Dockerfile -t tag image-name .
  • To run image
    • docker run -p localport : containerport -name container-name image-name
  • To stop
    • docker stop container-name