vagrant port
List mappings between guest and host ports. More information: https://developer.hashicorp.com/vagrant/docs/cli/port.
- List all port mappings of machine(s) running in the current directory:
vagrant port
- List mappings for a specific machine (if
Vagrantfileis multi-machine):
vagrant port
- Display info for a specific guest port:
vagrant port --guest
- Display machine-readable output:
vagrant port --machine-readable
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
