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 3 years have passed since last update.

Docker サーバーの起動状態をリアルタイムで表示するコマンド watch "docker ps"

Last updated at Posted at 2020-11-27

watchコマンドを使った監視方法

2秒ごとにコマンドを入力してくれるので、フォアグラウンドでリアルタイム更新される。
使っているTerminalを画面分割して、監視用の画面を作るとやりやすい。

watch "docker ps"

# ヘッダを表示しない。よりスッキリした画面になる
watch -t "docker ps"

# 時間間隔指定
watch -n 1 "docker ps" 

【 watch 】コマンド――コマンドを一定間隔で繰り返し実行する:Linux基本コマンドTips(220) - @IT

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?