我使用vagrant来安装Atomic,我想通过我的vagrantfile安装Cockpit。
我手动使用sudo atomic install fedora/cockpitws
,我没有遇到任何问题。
当我尝试在我的vagrantfile中插入它时,我收到此错误:cannot enable tty mode on non tty input
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
我在vagrantfile中添加的唯一句子是:config.vm.provision :shell, inline: "sudo atomic install fedora/cockpitws"
我做错了吗?提前致谢
答案 0 :(得分:1)
你可以试试
config.vm.provision :shell, privileged: false, inline: "sudo atomic install fedora/cockpitws"
所以它会与你的流浪者用户ssh并运行命令所以tty应该没问题。当你用root用户省略privileged: false
ssh时