Did you also add

    EXPOSE 6300/tcp

to your Docker file?

> On 2. Oct 2019, at 14:49, [email protected] wrote:
> 
> I'm using 8.0.4 and have the agent running with my app (confirmed) in a 
> docker container, but can't get the cli dump to work from outside. My goal is 
> to keep it running across multiple test runs and dump and reset the coverage 
> data. When I attempt to connect I get this error:
> 
> [INFO] Connecting to localhost/127.0.0.1:6300.
> Exception in thread "main" java.io.IOException: Socket closed unexpectedly.
>         at 
> org.jacoco.cli.internal.core.tools.ExecDumpClient.dump(ExecDumpClient.java:128)
>         at 
> org.jacoco.cli.internal.core.tools.ExecDumpClient.dump(ExecDumpClient.java:98)
>         at org.jacoco.cli.internal.commands.Dump.execute(Dump.java:69)
>         at org.jacoco.cli.internal.Main.execute(Main.java:89)
>         at org.jacoco.cli.internal.Main.main(Main.java:104)
> 
> I am actually attempting this with a complex WebSphere app, so when I hit the 
> error I used a simple spring boot app to test the conditions again and get 
> the same error. After further testing I found I was able to perform the dump 
> from 'inside' the container for both apps, and I have specified the 
> appropriate docker port pass-through ( -p 6300:6300 ). Wondering if anyone 
> else has hit this, or if there is some other handshake code (or ports) needed 
> to successfully connect from outside the container? 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/0fccc231-3cf7-4b6a-aa56-fb4bb537d44d%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/0fccc231-3cf7-4b6a-aa56-fb4bb537d44d%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/40100671-8C7F-413A-AC60-F4D9A1061ECC%40mountainminds.com.

Reply via email to