🌑

工作備忘錄

docker ps 輸出結果格式化

1.開啟~/.docker/config.json。(不存在則新增)

2.編輯內容,新增屬性”psFormat”,輸出欄位可參照Format the output (–format)

{

“psFormat”: “table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}“

}

參考來源:Docker CLI configuration file (config.json) properties

— 2024年2月27日

Search