code: func IsStopped(ctx context.Context, client client.APIClient, containerID string) func(log poll.LogT) poll.Result {
  	return func(log poll.LogT) poll.Result {
  		inspect, err := client.ContainerInspect(ctx, containerID)
  
  		switch {
  		case err != nil:
  			return poll.Error(err)
  		case !inspect.State.Running:
  			return poll.Success()
  		default:
  			return poll.Continue("waiting for container to be stopped")
  		}
  	}
  }
docs: // IsStopped verifies the container is in stopped state.