Cause you are using "client" as variable name, you had to ovewrite the docker client lib as dockerapi.
Cause dockerapi.NewClientWithOpts return client.Client object, we cant use method and field on this object.
The simpliest way I found to get the object field value is to use "unsafe" to catch the unreferenced field in a "reflect" object of the client.Client
The communication look working with the socket now.
Hello,
Here is a fix proposal.
Cause you are using "client" as variable name, you had to ovewrite the docker client lib as dockerapi. Cause dockerapi.NewClientWithOpts return client.Client object, we cant use method and field on this object.
The simpliest way I found to get the object field value is to use "unsafe" to catch the unreferenced field in a "reflect" object of the client.Client
The communication look working with the socket now.
Fix #218 Signed-off-by: Remi Ziolkowski remi.ziolkowski-ext@pole-emploi.fr