// ensureContainerRunning make sure container is running by containerID, else return an error
ensureContainerRunning make sure container is running by containerID, else return an error
// ensureContainerRunning make sure container is running by containerID else return an error
func ensureContainerRunning(client *Client, containerID string) error {
	isRunning, err := isContainerRunning(client, containerID)
	if err != nil {
		return err
	}
	if !isRunning {
		return fmt.Errorf("Container %s is not running.", containerID)
	}
	return nil
}
func ensureContainerRunning ( client * Client , containerID string ) error { isRunning , err := isContainerRunning ( client , containerID ) if err != nil { return err } if ! isRunning { return fmt . Errorf ( " " , containerID ) } return nil }
ensureContainerRunning make sure container is running by containerID, else return an error
ensureContainerRunning make sure container is running by containerID else return an error