Questions tagged «packer»

5
与Packer打包时,如何在Ubuntu 16.04中运行“ apt-get upgrade -y”时避免交互对话框?
我正在使用Packer创建基于Ubuntu 16.04映像的AWS AMI。首先,我正在进行升级: sudo apt-get update sudo apt-get upgrade -y 这是我的预配器部分的相关部分: "provisioners": [ { "type": "shell", "inline": [ "sudo apt-get update", "sudo apt-get upgrade -y" ] } ] 但是,这将打破自动化,因为会弹出一个交互式对话框: amazon-ebs: Found kernel: /boot/vmlinuz-4.4.0-72-generic amazon-ebs: A new version of /boot/grub/menu.lst is available, but the version installed amazon-ebs: currently has been locally …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.