このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 02 Apache2で自己認証ssl [中間証明書の整合性確認]
最近の更新
# ls -alh /var/lib/docker/containers/*/*-json.log
# docker inspect app-proxy-1 | grep -i log
"LogPath": "/var/lib/docker/containers/415a09895929c250e05f2ec463c2affc144166884a93b1591e8cd2a884b86a7a/415a09895929c250e05f2ec463c2affc144166884a93b1591e8cd2a884b86a7a-json.log",
"LogConfig": {
# truncate -s 0 /var/lib/docker/containers/415a09895929c250e05f2ec463c2affc144166884a93b1591e8cd2a884b86a7a/415a09895929c250e05f2ec463c2affc144166884a93b1591e8cd2a884b86a7a-json.log
docker-compose.yml
services: app: logging: driver: "json-file" options: max-size: "10m" max-file: "3"
/etc/docker/daemon.json
{ "log-driver": "json-file", "log-opts": {"max-size": "10m", "max-file": "3"} }