问题描述
我的vagrantfile很简单:
import QtQuick 2.7
import QtQuick.Layouts 2.14
import QtQuick.Controls 2.14
Rectangle {
width: 600
height: 900
color:"white"
property ListModel forms: ListModel {
ListElement {
formName: "Form one"
formSource: "Form1.qml"
}
ListElement {
formName: "Form two"
formSource: "Form2.qml"
}
ListElement {
formName: "Form three"
formSource: "Form3.qml"
}
}
RowLayout {
anchors.fill: parent
Repeater {
model: forms
delegate: Item {
CheckBox {
id: checkBox
text: "Check " + modelData.formName + " on/off"
}
ColumnLayout {
Layout.fillHeight: true
Layout.fillWidth: true
anchors {
top: checkBox.bottom
topMargin: 10
}
Loader {
active: checkBox.checked
source: modelData.formSource
}
}
}
}
}
}
登录到刚刚创建的虚拟机后:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.Box = "generic/ubuntu1810"
end
如您所见,它似乎可以连接到互联网。
不过,当我尝试提取docker映像时,我得到了:
$ vagrant ssh
vagrant@ubuntu1810:~$ ping google.es
PING google.es (216.58.201.163) 56(84) bytes of data.
64 bytes from mad08s06-in-f3.1e100.net (216.58.201.163): icmp_seq=1 ttl=112 time=37.6 ms
64 bytes from mad08s06-in-f3.1e100.net (216.58.201.163): icmp_seq=2 ttl=112 time=43.1 ms
64 bytes from mad08s06-in-f3.1e100.net (216.58.201.163): icmp_seq=3 ttl=112 time=54.4 ms
我还试图将映像拉入主机,并且正确将其拉出。
有什么想法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)