Docker log format as Json

Hi all,

I have a question on how to output json-file or any other log driver with json format instead of “Json” string.

e.g. docker run ubuntu /bin/sh ‘{“key”:“value”}’ will output the following

However this won’t work with elasticsearch as the log will be treated as String, is there anyway to make double quote not escaped?