From bc66d39567cd5f1c16c8c183306b04f782def9c5 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 9 Sep 2014 10:53:29 -0600 Subject: [PATCH] Fix Java CMD --- java/README-content.md | 2 +- java/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/README-content.md b/java/README-content.md index af80343f..2ea9b4e8 100644 --- a/java/README-content.md +++ b/java/README-content.md @@ -16,7 +16,7 @@ For this image, the most straight-forward use is to use a java container as both ADD . /usr/src/myapp WORKDIR /usr/src/myapp RUN javac Main.java - CMD ["java Main"] + CMD ["java", "Main"] Then run the commands to build and run the docker image. diff --git a/java/README.md b/java/README.md index 8badc747..984683f2 100644 --- a/java/README.md +++ b/java/README.md @@ -16,7 +16,7 @@ For this image, the most straight-forward use is to use a java container as both ADD . /usr/src/myapp WORKDIR /usr/src/myapp RUN javac Main.java - CMD ["java Main"] + CMD ["java", "Main"] Then run the commands to build and run the docker image.