Why does wildcard for jar execution not work in docker CMD? Why does wildcard for jar execution not work in docker CMD? docker docker

Why does wildcard for jar execution not work in docker CMD?


This kind of asterisk expansion is done by the command line processor - the shell - and you circumvent that by invoking java directly.

Much the same way as commands should be invoked with "CMD /C" under Windows to get full treatment.

Invoke /bin/sh instead.


CMD java -jar /app/file*.jar worked for me