How to run Java in a Docker container - Ubuntu Environment

I showcase how we can set up a docker file that can build a docker image that can run a docker container that runs a simple “Hello World!“ java program. I think docker is a very interesting concept and hope more people will use it in the future. Commands: Build a docker image: docker build -t [tag] [dockerfile position] Create and run Docker container docker run [docker image] How to get into a docker container docker run -it [docker image] /bin/bash My channel publishes videos regarding programming, software engineering especially Java and JavaFX. If that is what you are looking for then do not hesitate to join me on this journey! Subscribe to my YouTube channel:
Back to Top