FindContainerByType will find a container for this site denoted by the containerType if it is available.
(containerType string)
| 205 | |
| 206 | // FindContainerByType will find a container for this site denoted by the containerType if it is available. |
| 207 | func (app *DdevApp) FindContainerByType(containerType string) (*container.Summary, error) { |
| 208 | labels := map[string]string{ |
| 209 | "com.ddev.site-name": app.GetName(), |
| 210 | "com.docker.compose.service": containerType, |
| 211 | "com.docker.compose.oneoff": "False", |
| 212 | } |
| 213 | |
| 214 | return dockerutil.FindContainerByLabels(labels) |
| 215 | } |
| 216 | |
| 217 | // Describe returns a map which provides detailed information on services associated with the running site. |
| 218 | // if short==true, then only the basic information is returned. |