[JCLOUDS-500] Initial commit for docker

Add also a null check for this.