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?

docker imagesが長すぎて表示が崩れる問題の対処

0
Posted at

docker imagesコマンドは、リポジトリ名が長くなると表示が崩れて見づらくなります。

image.png

docker imagesの--formatオプションで表示を整えることができます。truncateを使えば文字数を省略できます。

$ docker images \
  --format 'table {{truncate .Repository 50}}\t{{.Tag}}\t{{.Size}}\t{{.ID}}\t{{.CreatedAt}}'

image.png

見やすい表形式になりました。

必要に応じて.bashrc等でエイリアスに設定しておくのが良いと思います。

環境

$ docker --version
Docker version 28.3.2, build 578ccf6
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?