Use ENTRYPOINT
in its exec form
ENTRYPOINT ["java", "-jar", "/dir/test-1.0.1.jar"]
then when you run docker run -it testjava $value
, $value
will be "appended" after your entrypoint, just like java -jar /dir/test-1.0.1.jar $value
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…