Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which java 8 docker image contains jmap?

Tags:

java

docker

I'm want to use jmap but the docker image java:8-jre doesn't have it. Which java docker image would have it?

like image 217
Glide Avatar asked Jan 06 '23 05:01

Glide


2 Answers

You can make your own image with:

RUN apt-get install openjdk-8-jdk openjdk-8-dbg

The dbg one will include jmap (see "jmap command not found")

like image 101
VonC Avatar answered Jan 07 '23 19:01

VonC


Just do a search in the docker hub, such as site:hub.docker.com java jmap and you should find many.

Check that the associated Dockerfile contains jmap

like image 27
user2915097 Avatar answered Jan 07 '23 20:01

user2915097