1. 程式人生 > >Docker 簡單檢視name和ip

Docker 簡單檢視name和ip

原文地址:https://blog.csdn.net/wen_1108/article/details/78282268

檢視docker name:

sudo docker inspect -f='{{.Name}}' $(sudo docker ps -a -q)


檢視dockers ip:

sudo docker inspect -f='{{.NetworkSettings.IPAddress}}' $(sudo docker ps -a -q)