You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker run -it -v /jenkins-war/:/jenkins-war/ .slim
(yes,it's custom-made jenkins docker image)
out put:
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
@a18792721831 curious what you used for the base image... What kind of OS image is it? Can you share the container logs when docker-slim runs? I see a number of read: connection reset by peer, which usually means that the application in the container crashed. You can get the container logs by adding the --show-clogs parameter to the docker-slim build command (or directly from Docker with the usual docker logs command).
os:
Linux host-10-0-228-117 3.10.0-1062.1.2.el7.x86_64 #1 SMP Mon Sep 30 14:19:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
question:
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
process:
output:
docker-slim[build]: info=http.probe message='using default probe'
docker-slim[build]: state=started
docker-slim[build]: info=params target=billing-jenkins continue.mode=probe rt.as.user=true keep.perms=true
docker-slim[build]: state=image.inspection.start
docker-slim[build]: info=image id=sha256:6be130d0ec2ce783666533a79dcb46eed149d1e376135e4a44783f71d54c488f size.bytes=2345423912 size.human=2.3 GB
docker-slim[build]: info=image.users exe='[root]' all='[root]'
docker-slim[build]: info=image.stack index=0 name=':latest' id='sha256:6be130d0ec2ce783666533a79dcb46eed149d1e376135e4a44783f71d54c488f'
docker-slim[build]: info=image.exposed_ports list='8080/tcp'
docker-slim[build]: state=image.inspection.done
docker-slim[build]: state=container.inspection.start
docker-slim[build]: info=container status=created name=dockerslimk_25094_20200413011056 id=8376e2ba2868621d759343cd43f99a08944c57fa5043455d547db47a54c60201
docker-slim[build]: info=cmd.startmonitor status=sent
docker-slim[build]: info=event.startmonitor.done status=received
docker-slim[build]: info=container name=dockerslimk_25094_20200413011056 id=8376e2ba2868621d759343cd43f99a08944c57fa5043455d547db47a54c60201 target.port.list=[32770] target.port.info=[8080/tcp => 0.0.0.0:32770] message='YOU CAN USE THESE PORTS TO INTERACT WITH THE CONTAINER'
docker-slim[build]: state=http.probe.starting message='WAIT FOR HTTP PROBE TO FINISH'
docker-slim[build]: info=continue.after mode=probe message='no input required, execution will resume when HTTP probing is completed'
docker-slim[build]: info=prompt message='waiting for the HTTP probe to finish'
docker-slim[build]: state=http.probe.running
docker-slim[build]: info=http.probe.ports count=1 targets='32770'
docker-slim[build]: info=http.probe.commands count=1 commands='GET /'
docker-slim[build]: info=http.probe.call status=error method=GET target=http://127.0.0.1:32770/ attempt=1 error='Get "http://127.0.0.1:32770/": read tcp 127.0.0.1:49886->127.0.0.1:32770: read: connection reset by peer' time=2020-04-13T01:11:08Z
docker-slim[build]: info=http.probe.call status=error method=GET target=http://127.0.0.1:32770/ attempt=2 error='Get "http://127.0.0.1:32770/": read tcp 127.0.0.1:49924->127.0.0.1:32770: read: connection reset by peer' time=2020-04-13T01:11:16Z
docker-slim[build]: info=http.probe.call status=error method=GET target=http://127.0.0.1:32770/ attempt=3 error='Get "http://127.0.0.1:32770/": read tcp 127.0.0.1:49962->127.0.0.1:32770: read: connection reset by peer' time=2020-04-13T01:11:24Z
docker-slim[build]: info=http.probe.call status=error method=GET target=http://127.0.0.1:32770/ attempt=4 error='Get "http://127.0.0.1:32770/": EOF' time=2020-04-13T01:11:32Z
docker-slim[build]: info=http.probe.call status=error method=GET target=http://127.0.0.1:32770/ attempt=5 error='Get "http://127.0.0.1:32770/": read tcp 127.0.0.1:50060->127.0.0.1:32770: read: connection reset by peer' time=2020-04-13T01:11:48Z
docker-slim[build]: info=http.probe.summary total=5 failures=5 successful=0
docker-slim[build]: state=http.probe.done warning=no.successful.calls
docker-slim[build]: info=event message='HTTP probe is done'
docker-slim[build]: state=container.inspection.finishing
docker-slim[build]: state=container.inspection.artifact.processing
docker-slim[build]: state=container.inspection.done
docker-slim[build]: state=building message='building optimized image'
docker-slim[build]: state=completed
docker-slim[build]: info=results status='MINIFIED BY 1004.66X [2345423912 (2.3 GB) => 2334543 (2.3 MB)]'
docker-slim[build]: info=results image.name=.slim image.size='2.3 MB' data=true
docker-slim[build]: info=results artifacts.location='/usr/local/bin/docker-slim/.docker-slim-state/images/6be130d0ec2ce783666533a79dcb46eed149d1e376135e4a44783f71d54c488f/artifacts'
docker-slim[build]: info=results artifacts.report=creport.json
docker-slim[build]: info=results artifacts.dockerfile.original=Dockerfile.fat
docker-slim[build]: info=results artifacts.dockerfile.new=Dockerfile
docker-slim[build]: info=results artifacts.seccomp=-seccomp.json
docker-slim[build]: info=results artifacts.apparmor=-apparmor-profile
docker-slim[build]: state=done
docker-slim[build]: info=report file='slim.report.json'
(yes,it's custom-made jenkins docker image)
out put:
Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.
explain:
image-id replace real image id/name
mail-name replace real mail name
mail-addr replace real mail address
is a real issue ?
please, thanks!
The text was updated successfully, but these errors were encountered: