agent/api/task/task.go
func (task *Task) ContainerByName(name string) (*apicontainer.Container, bool) {
	for _, container := range task.Containers {
		if container.Name == name {
			return container, true
		}
	}
	return nil, false
}
func (task *Task) ContainerByName(name string) (*apicontainer.Container, bool) {
	for _, container := range task.Containers {
		if container.Name == name {
			return container, true
		}
	}
	return nil, false
}
func ( task * Task ) ContainerByName ( name string ) ( * apicontainer . Container , bool ) { for _ , container := range task . Containers { if container . Name == name { return container , true } } return nil , false }
// ContainerByName returns the *Container for the given name
ContainerByName returns the * Container for the given name