0
罗列所有container的IP地址
单独monitor某个contrainer的logs
Posted on
Thursday, August 30, 2018
by
醉·醉·鱼
and labeled under
docker
罗列所有container的IP地址
docker ps -q | xargs -n 1 docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}'
单独monitor某个contrainer的logs
docker ps -a | grep payments | sed 's/ .*//' | xargs docker logs -f
Post a Comment