(watchPath string, volumes []types.ServiceVolumeConfig)
| 434 | } |
| 435 | |
| 436 | func checkIfPathAlreadyBindMounted(watchPath string, volumes []types.ServiceVolumeConfig) bool { |
| 437 | for _, volume := range volumes { |
| 438 | if volume.Bind != nil { |
| 439 | relPath, err := filepath.Rel(volume.Source, watchPath) |
| 440 | if err == nil && !strings.HasPrefix(relPath, "..") { |
| 441 | return true |
| 442 | } |
| 443 | } |
| 444 | } |
| 445 | return false |
| 446 | } |
| 447 | |
| 448 | type tarDockerClient struct { |
| 449 | s *composeService |
no outgoing calls
no test coverage detected