code: function createDocker(dockerhost) {
    dockerhost = dockerhost || 'unix:///var/run/docker.sock';
  
    if ((/^(http|tcp)/).test(dockerhost)) return httphost(dockerhost);
    if ((/^unix\:\/\//).test(dockerhost)) return sockethost(dockerhost);
  
    throw new Error('Cannot parse dockerhost ' + dockerhost);
  }
docs: Convenience function to create a [dockerode](https://github.com/apocas/dockerode) instance.
  
  @name dockops::createDocker
  @function
  @param {string=} dockerhost (default: `'unix:///var/run/docker.sock'`) the docker host can also be `http` or `tcp`
  @return {Object} dockerode instance