Docker开放多个端口和查看内网IP

  1. 开放多个端口: docker run -p 20011:20011 -p 20012:20012 -p 20013:20013 -p 5666:5666 -ti erlang:R15B03-1
  2. 查看内网IP:docker inspect –format ‘{{ .NetworkSettings.IPAddress }}’ container_id

作者: hqiang1984

量化自我,极简主义