0
0

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 1 year has passed since last update.

docker container内のlogを確認する

Last updated at Posted at 2022-06-02

docker container log

  • 実行中のコンテナを一覧表示し、確認したいcontainer nameを表示
    docker ps

  • コンテナのログを読み取り
    docker logs NAME -f

  • エラーログのみを読み取る
    docker logs NAME -f 1>/dev/null

  • アクセスログのみを読み取る
    docker logs NAME -f 2>/dev/null

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?