2016-03-15 56 views
2

我使用vagrant來安裝原子,我想通過我的vagrantfile安裝駕駛艙。 手動我使用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"

難道我做錯了什麼?在此先感謝

回答

1

你可以嘗試運行作爲

config.vm.provision :shell, privileged: false, inline: "sudo atomic install fedora/cockpitws" 

所以它會與你的漂泊不定的用戶SSH和運行命令,以便TTY應該沒問題。當你忽略privileged: false它與你的root用戶ssh