ubuntu/jre:17-22.04_edge crash

Bug #2067993 reported by Oleg Brigmann
6
This bug affects 1 person
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/jre:17-22.04_edge
65456a4cdaded6ed1d0c443bb6712c396a98487a1bf31596ea593f4f79ee297a
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>[/<mainclass>] [args...]
       java [options] --module <module>[/<mainclass>] [args...]
           (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>/<mainclass> are passed as the arguments to
 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,
                  and ZIP archives to search for class files.......

Changed in ubuntu-docker-images:
assignee: nobody → Vladimir Petko (vpa1977)
Revision history for this message
Vladimir Petko (vpa1977) wrote :

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

Changed in ubuntu-docker-images:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.