简体   繁体   中英

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.

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

Actual Result: Error : SSH connection timeout when knife bootstrap command is run on Local workstation

Platform Details Centos 7.1 (Azure VM) Docker Container - Centos 6.4

This is not how either Docker or knife bootstrap works. 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. Using chef-client inside containers at runtime for production operations is very very not recommended.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM