How to parse command output (docker log) through goaccess?
What do you mean by "it doesn't work"? I got an error suggesting that the log format wasn't correct:

Fatal error has occurred
Error occured at: src/goaccess.c - set_curses - 1394
No time format was found on your conf file.


When I edited /etc/goaccess.conf (i.e. uncommented/selected time-format, date-format and log-format) the docker logs mycontainer | goaccess - command works as expected.

As an aside, for my nginx proxy inside my docker container, I had to set my log_format as follows:

log-format %v %h %^ %^ [%d:%t %^] "%r" %s %b "%R" "%u"