(out []byte)
| 463 | } |
| 464 | |
| 465 | func getDockerPortMapping(out []byte) (int, error) { |
| 466 | trimmed := strings.TrimSpace(string(out)) |
| 467 | matches := dockerPortPattern.FindStringSubmatch(trimmed) |
| 468 | if len(matches) != 2 { |
| 469 | return 0, errors.Newf("got unexpected output: %s", trimmed) |
| 470 | } |
| 471 | return strconv.Atoi(matches[1]) |
| 472 | } |
| 473 | |
| 474 | func (d *dockerRunnable) Stop() error { |
| 475 | if !d.IsRunning() { |
no outgoing calls
searching dependent graphs…