code: function(container, cb) {
          if (container) {
            grunt.log.writeln("Found a matched container, " + action + " it.");
  
            var dockcontainer = docker.getContainer(container.Id);
  
            var opts = confImage.options && confImage.options[action] || {};
            dockcontainer[action](opts, function(e, stream) {
              if (stream && stream.readable) {
                stream.setEncoding('utf8');
                stream.on('error', cb);
                stream.on('end', cb);
                stream.on('data', grunt.log.write);
              } else {
                cb(e);
              }
  
            });
          } else {
            grunt.log.writeln("No matched container with this image.");
            cb(null);
          }
        }
docs: Step 2: stop it