获取Docker容器名称和ID

docker ps --format "{{.Names}}"
docker ps -q
原文地址:https://www.cnblogs.com/sanduzxcvbnm/p/15597066.html