Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Latest commit

 

History

History
33 lines (27 loc) · 757 Bytes

File metadata and controls

33 lines (27 loc) · 757 Bytes

Docker-Java-HelloWorld

Archived. Originally created to learn how to build DockerFiles

A Simple Hello World java applications wrapped with Docker. It will print the following

Hello World!
 - java.version: [java version]
 - java.vm.version: [java virtual machine version]

then exit

Getting Started

Download and install Docker

Build the Docker image

Use the command line to build the docker image

docker build -t=[tagName] [path]

Where

  • [tagName] - The name you want to use for the image
  • [path] - the path to the code

Run the Docker image

use the command line to run the docker image

docker run --name [name] [image_tagName]

Where

  • [name] - the name of the container
  • [image_tagName] - the tag name of the image