fixes #5934: changes needed to support creation of docker containers

 - ssh provisioning step can be turned off
 - os and architecture can be made optional
this value depends on if image based provisioning is enabled and images has ssh flag on them.