2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Docker 上の Redash のログのサイズを調べる

Posted at

Redash を動かしているサーバのディスクが枯渇してきたので、ログが圧迫している可能性を考えたが、Docker で動かしていたので、どこにログがあるのか不明だった。
docker inspect を使うと、ログの場所がわかる、ということなので、作ったワンライナーが下記。
調べても意外と出てこなかったので、備忘録として残す。

docker container ls --format "{{.Names}}" | xargs -tn1 -I{} sh -c "sudo ls -lh \$(docker inspect --format='{{.LogPath}}' {})"
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?