apt-get update
apt-get install ssh vim
passwd
Give a passwordvim /etc/ssh/sshd_config
change the line 'PermitRootLogin prohibit-password' to 'PermitRootLogin yes'service ssh start
- Come out of the container & run
docker ps -a
. Copy the running container id - run in a different terminal
docker commit <id> <give a name>
- Use the committed image to create more containers as nodes
- Get the ip address of the container from /etc/hosts
- Run bootstrap command with the host ip like
knife bootstrap ip-address -x root -P root -N "node_name"
- Container is now registered as node, check from chef manage console
- Create recipes & runbooks similar to the procedure for virtualmachine node
- Attach container & run chef-client to run the runbook