the rcli.DockerConn type should be a io.Writer, this way, you can change the type only where you need it.