Answer the question
In order to leave comments, you need to log in
How to configure docker to write logs to a folder named container?
Hello.
Docker logs by default
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
821dcb7bb9cb prakhar1989/static-site "./wrapper.sh" 2 days ago Up 2 days 0.0.0.0:32773->80/tcp, 0.0.0.0:32772->443/tcp static-site
/var/lib/docker/containers/821dcb7bb9cb7587c4806bbbeb1357052a5d9fcb05a5aa3f09821e07fa402d40/
Answer the question
In order to leave comments, you need to log in
Output via syslog wherever you like, the question "why" is open.
You rather need to learn how to read them by the name of the container, quite simply:
docker logs имя-контейнера # просто посмотреть логи
docker logs -f имя-контейнера # в рейлтайм режиме
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question