Docker Community Forums

Share and learn in the Docker community.

Help Creating First Docker Container - Complete Newbie

Hi all!

I’ve been using Docker to run applications for about a year or so, but I’ve only ever used ones that have been premade. I’m looking to create my own container for the following java app:

I understand that I need to do three things to get it to run:

Install Java 8 - sudo apt install openjdk-8-jre-headless
Install BIND9 ( - sudo [IP]
The download and run BedrockConnect from the Github release page

I’ve looked at a few tutorials, and have made a docker file, but I’m 100% certain it’s completely wrong - but I’m not sure where I can look to try to get some more answers. If someone would be able to shed some light on this, or point me in the right direction it would be greatly appreciated. I’m a complete newbie and I’m at a loss.

This is what I have so far

FROM ubuntu:latest

RUN apt-get update
RUN apt-get install openjdk-8-jre-headless
RUN curl
RUN curl
CMD ./
CMD java -jar ./BedrockConnect-1.0-SNAPSHOT.jar nodb=true

Install Docker on your machine. For Ubuntu: …
Create your project. In order to create your first Docker application, I invite you to create a folder on your computer. …
Edit the Python file. …
Edit the Docker file. …
Create the Docker image. …
Run the Docker image.