LIST natpf rules in Virtualbox/Vagrant

后端 未结 5 1939
执念已碎
执念已碎 2021-02-04 06:13

I often get errors like this when running Vagrant:

VBoxManage: error: A NAT rule of this name already exists
VBoxManage: error: Details: code NS_ERROR_INVALID_AR         


        
5条回答
  •  南方客
    南方客 (楼主)
    2021-02-04 06:35

    You can delete a rule from the command line by issuing:

    VBoxManage controlvm "boot2docker-vm" natpf1 delete "tcp-port80"
    

    the last parameter in quotes is the rule name you wish to delete.

提交回复
热议问题