Pull the latest IBM Java docker image

docker pull ibmjava:latest

latest: Pulling from library/ibmjava
Digest: sha256:714cee0100f11320fa2e6e6f914861a5ca5d082592422e02b87b04ffc690a3a2
Status: Image is up to date for ibmjava:latest

Check the image is downloaded

docker images

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
ibmjava             latest              8180a8f0188a        2 weeks ago         310 MB

Start the docker image

docker run -i -t ibmjava:latest


Execute a java program (here it's just java -version) with the JIT logging switches enabled

/opt/ibm/java/jre/bin/java '-Xjit:count=0,verbose={compileEnd|inlining|compileTime},vlog=vlog' -version

java version "1.8.0"
Java(TM) SE Runtime Environment (build pxa6480sr4fp1-20170215_01(SR4 FP1))
IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References 20170209_336038 (JIT enabled, AOT enabled)
J9VM - R28_20170209_0201_B336038
JIT  - tr.r14.java.green_20170125_131456
GC   - R28_20170209_0201_B336038_CMPRSS
J9CL - 20170209_336038)
JCL - 20170215_01 based on Oracle jdk8u121-b13

Find the JIT log file

ls -l vlog*

-rw-r-----   1 root root 1294559 Mar 19 08:51 vlog.20170319.085131.59

Find your container ID (In another terminal outside of docker)

docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
64b53f315818        ibmjava:latest      "/bin/bash"         7 minutes ago       Up 7 minutes                            reverent_sinoussi

Copy the log file by specifying the container ID and path

docker cp 64b53f315818:/vlog.20170319.085131.59 .