Skip to content

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

License

Notifications You must be signed in to change notification settings

Jtomage/Docker-Java-HelloWorld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker-Java-HelloWorld

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

Watchers

Forks

Releases

No releases published

Packages

No packages published