我按照一本书安装了VM,docker-engine。所有命令都正常工作,没有发现错误。
但是当我在终端
中运行时vagrant ssh
我收到了这个错误
==> dev: The container is not currently running.
我谷歌这个,并从github问题和stackoverflow关注几个答案,但无法克服此错误。
N.B:我对Vagrant和Docker都很陌生
答案 0 :(得分:0)
问题解决了。
我通过修补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