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. The configuration: Version: classpath 'com.bmuschko:gradle-docker-plugin:3.0.6' Last lines from entrypoint.sh E.g., it is often used for installing software packages. ENTRYPOINT ["java","-jar","/app.jar"] When docker run command is executed it runs the command java jar /app.jar command on Ubuntu terminal. Per our general rule, the following argument list will be constructed: ["/bin/logwrap", "/bin/service", "-d"] Overriding Both ENTRYPOINT and CMD. It can be run without problems in Docker. You should unleash the power of combination of ENTRYPOINT and CMD. For example -
Portuguese Water Dog Nevada, Rhodesian Ridgeback Rescue Oklahoma,
docker run command line arguments to entrypoint