Browse Source

Fix Java CMD

Tianon Gravi 11 years ago
parent
commit
bc66d39567
2 changed files with 2 additions and 2 deletions
  1. 1 1
      java/README-content.md
  2. 1 1
      java/README.md

+ 1 - 1
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
     ADD . /usr/src/myapp
     WORKDIR /usr/src/myapp
     WORKDIR /usr/src/myapp
     RUN javac Main.java
     RUN javac Main.java
-    CMD ["java Main"]
+    CMD ["java", "Main"]
 
 
 Then run the commands to build and run the docker image.
 Then run the commands to build and run the docker image.
 
 

+ 1 - 1
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
     ADD . /usr/src/myapp
     WORKDIR /usr/src/myapp
     WORKDIR /usr/src/myapp
     RUN javac Main.java
     RUN javac Main.java
-    CMD ["java Main"]
+    CMD ["java", "Main"]
 
 
 Then run the commands to build and run the docker image.
 Then run the commands to build and run the docker image.