Customize docker-java response to remove some logger like stream

I am using docker java version 3.0.10. I can write code to perform different operations using that version. I am getting response like following :

com.github.dockerjava.api.command.InspectImageResponse@3e690a97[arch=amd64,author=,comment=,config=com.github.dockerjava.api.model.ContainerConfig@3dbaa748[attachStderr=false,attachStdin=false,attachStdout=false,cmd={sh},domainName=,entrypoint=<null> ........................(so on json) ]

However, I want JSON response and want to remove appended line com.github.dockerjava.api.command.InspectImageResponse@3e690a97, like in each response am getting.

  • mysql source command do nothing inside docker container
  • Dynamically set JAVA_HOME of docker container
  • Docker compose add local ip adress per network
  • Remote access to container
  • Multiple nodejs workers in docker
  • Automate iOS application with Appium in Docker
  • Please give me way to do that.

    Thanks in advance.

  • How to assign more memory to docker container
  • laravel queue service in docker container
  • Which Docker base image should be used to install Apps in a container without any additional OS?
  • Discovering nsqd server address from nslookupd
  • Where are docker's registered drivers being initialized in the source code?
  • Docker swarm - log to rsyslog container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.