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

Jtomage/Docker-Java-HelloWorld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple Hello World app in java. It will print the java versions, compile the HelloWorld.java, then execute the Hello World

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors