It is best practice to let the application inside the container log to the console, as in STDOUT and STDERR. For containers created from images that follow that practice, you won’t be able to find the logs in the filesystem.
If logs are written into the containers filesystem, it can bloat your container - especialy if the application uses a debug or trace loglevel. To remedy this problem, you would need to trim the logs inside the container. This approach is not recommended.
I assume that the container created from image, the logs are written to the container filesystem(path: var/lib/docker/container), but I cannot find it. From your last post I guess my understanding was wrong. But where can I find the logs?
Is there a way to save logs to a dedicated directory in the console?