code: func FnWaitContainer(client *docker.Client, containerID string) chan error {
  	errs := make(chan error)
  	go func() {
  		code, err := client.WaitContainer(containerID)
  		if err != nil {
  			errs <- err
  		}
  		if code != 0 {
  			errs <- ErrContainerExecutionFailed
  		}
  		errs <- nil
  	}()
  	return errs
  }
docs: // FnWaitContainer wait until container finnish your processing