This is a big commit, and I apologize in advance for the future
git-blames all pointing to me. This commit does a few things:
1. Merges the website/docs and website/www repo into a single website repo
to be in line with other HashiCorp projects
2. Updates to use middleman-hashicorp
3. Converts less to scss to be in line with other projects
4. Updates page styles to be in line with other projects
5. Optimizes images
6. Prepare for S3 + Fastly deployment with scripts, etc.
7. Removes blog posts (they have been transferred to hashicorp.com with
redirects in place
8. Updated sitemap generation script for better SEO
9. Fixed many broken links
10. Add description to all fields
1.0 KiB
1.0 KiB
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| docs | vagrant port - Command-Line Interface | cli-port | The "vagrant port" command is used to display the full list of guest ports mapped to the host machine ports. |
Port
Command: vagrant port
The port command displays the full list of guest ports mapped to the host machine ports:
$ vagrant port
22 (guest) => 2222 (host)
80 (guest) => 8080 (host)
In a multi-machine Vagrantfile, the name of the machine must be specified:
$ vagrant port my-machine
Options
-
--guest PORT- This displays just the host port that corresponds to the given guest port. If the guest is not forwarding that port, an error is returned. This is useful for quick scripting, for example:$ ssh -p $(vagrant port --guest 22) -
--machine-readable- This tells Vagrant to display machine-readable output instead of the human-friendly output. More information is available in the machine-readable output documentation.