docs: function(cid) {
  
      // Find and bind container.
      return findContainerThrows(cid)
      .bind({})
      .then(function(container) {
        this.container = container;
      })
      // Check if container is running.
      .then(function() {
        return isRunning(cid);
      })
      // Stop container if it is running.
      .then(function(isRunning) {
        var self = this;
        if (isRunning) {
          return Promise.fromNode(function(cb) {
            self.container.stop(cb);
          });
        }
      })
      // Wrap errors.
      .catch(function(err) {
        throw new VError(err, 'Error stopping container %s.', cid);
      });
  
    }