ubuntu/jre:17-22.04_edge crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Docker Images |
Incomplete
|
Undecided
|
Vladimir Petko |
Bug Description
sle15:~ # docker run -d --name jre-container -e TZ=UTC ubuntu/
65456a4cdaded6e
sle15:~ # docker logs jre-container
Usage: java [options] <mainclass> [args...]
(to execute a class)
or java [options] -jar <jarfile> [args...]
(to execute a jar file)
or java [options] -m <module>
java [options] --module <module>
(to execute the main class in a module)
or java [options] <sourcefile> [args]
(to execute a single source-file program)
Arguments following the main class, source file, -jar <jarfile>,
-m or --module <module>
main class.
where options include:
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
--class-path <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
Changed in ubuntu-docker-images: | |
assignee: | nobody → Vladimir Petko (vpa1977) |
Hi,
The container entrypoint expects Java arguments (e.g. main class).
When the container is launched without arguments it will just display Java help message and exit[1].
If that is being seen as a non-optimal user experience, we can amend the example with a hello world-style application.
Best Regards,
Vladimir.
[1] https:/ /hub.docker. com/r/ubuntu/ jre