1. Home
  2. Docs
  3. docker
  4. docker命令
  5. docker inspect

docker inspect

查看指定容器IP

sudo docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' [容器ID]

Was this article helpful to you? Yes No

How can we help?