运行 vagrant ssh 时出错
Got an error while running vagrant ssh
我已经按照书安装了VM,docker-engine。所有命令都正常工作,没有发现错误。
但是当我在终端运行这个
vagrant ssh
我遇到了这个错误
==> dev: The container is not currently running.
我google这个并遵循github问题和Whosebug的几个答案,但无法克服这个错误。
N.B:我对 Vagrant 很陌生,Docker
问题已解决。
我通过修补 host_machine_port_checker.rb 并添加一个我在 port_check
中丢弃的额外参数来修复它:
def port_check(discard_this, port)
host_machine = @machine.provider.host_vm
host_machine.guest.capability(:port_open_check, port)
end
我已经按照书安装了VM,docker-engine。所有命令都正常工作,没有发现错误。
但是当我在终端运行这个
vagrant ssh
我遇到了这个错误
==> dev: The container is not currently running.
我google这个并遵循github问题和Whosebug的几个答案,但无法克服这个错误。
N.B:我对 Vagrant 很陌生,Docker
问题已解决。
我通过修补 host_machine_port_checker.rb 并添加一个我在 port_check
中丢弃的额外参数来修复它:
def port_check(discard_this, port)
host_machine = @machine.provider.host_vm
host_machine.guest.capability(:port_open_check, port)
end