Hashicorp Packer的SSH密码是什么?
一旦您使用Packer创建了图像。您如何获取root/ packer/(任何具有sudo特权的用户)的密码?
Packer.json
{
"builders": [
{
"type": "googlecompute",
"project_id": "project-id",
"source_image": "ubuntu-2004-focal-v20220615",
"ssh_username": "packer",
"zone": "us-west1-a"
}
],
}
运行后:
packer build packer.json #a Ubuntu image is created.
下一步,如何创建Sudo用户的帐户?
Once you created an image using packer. How do you get the root/ packer/ (any user with sudo privilege)'s password?
packer.json
{
"builders": [
{
"type": "googlecompute",
"project_id": "project-id",
"source_image": "ubuntu-2004-focal-v20220615",
"ssh_username": "packer",
"zone": "us-west1-a"
}
],
}
After running:
packer build packer.json #a Ubuntu image is created.
Next step, how do I create a sudo user's account?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论