Docker日常命令(持续更新...)

获取容器IP

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