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
docker — 2024年2月27日
Made with ❤ and at Taiwan.