[英]Installation of chef-client(Bootstrapping) on docker container in a VM on Azure/AWS
Scenario: Bootstrapping container to chef server in the same way as we bootstrap azure VM's. 场景:以与引导Azure虚拟机相同的方式将容器引导到Chef服务器。
Steps to Reproduce: Install Chef-client using knife bootstrap Run some recipe/role to install or configure container Expected Result: Installation of software such as java, python, or tools such as Jenkins, tomcat 重现步骤:使用小刀引导程序安装Chef-client运行一些配方/角色以安装或配置容器预期结果:安装诸如Java,python之类的软件或诸如Jenkins,tomcat之类的工具
Actual Result: Error : SSH connection timeout when knife bootstrap command is run on Local workstation 实际结果:错误:在本地工作站上运行knife bootstrap命令时,SSH连接超时
Platform Details Centos 7.1 (Azure VM) Docker Container - Centos 6.4 平台详细信息Centos 7.1(Azure VM)Docker容器-Centos 6.4
This is not how either Docker or knife bootstrap
works. 这不是Docker或knife bootstrap
工作方式。 Containers are not tiny VMs and should not be treated as such. 容器不是很小的虚拟机,因此不应被视为此类。 If you want to use Chef code to build Docker image files, Packer can do this. 如果要使用Chef代码构建 Docker映像文件,Packer可以执行此操作。 Using chef-client
inside containers at runtime for production operations is very very not recommended. 不建议在运行时在容器内部使用chef-client
进行生产操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.