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.

  • ImportError: No module named … on docker toolbar on windows
  • Java Maven Project Docker Integration Tests
  • Running Docker Oracle Container with different databases
  • Host to container volume mapping using Ansible not working
  • Can I run a docker container with an own, externally and host accessible, IP address on a Mac
  • Workflow for Python with Docker + IDE for non-web applications
  • Please give me way to do that.

    Thanks in advance.

  • running a Sikuli (1.1.1) script on a docker (headless mode)
  • PHP application moving to Docker failed to connect on AWS
  • docker-compose does not launch
  • Building a Docker images fails when a User tries to execute javac
  • Consul: SD architecture. What is the right way to access microservices from a front-end side?
  • Docker image with R (rocker/r.base) and python does not work when running on EC2, but local is fine
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.