Installation of chef-client(Bootstrapping) on docker container in a VM on Azure/AWS

Platform Details

Centos 7.1 (Azure VM)
Docker Container - Centos 6.4

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 conatiner
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