mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Ignore containers created outside compose
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
parent
5a2b7b83cd
commit
82ef998511
@ -59,6 +59,7 @@ func getDefaultFilters(projectName string, oneOff oneOff, selectedServices ...st
|
||||
if len(selectedServices) == 1 {
|
||||
f = append(f, serviceFilter(selectedServices[0]))
|
||||
}
|
||||
f = append(f, hasConfigHashLabel())
|
||||
switch oneOff {
|
||||
case oneOffOnly:
|
||||
f = append(f, oneOffFilter(true))
|
||||
|
@ -46,3 +46,7 @@ func containerNumberFilter(index int) filters.KeyValuePair {
|
||||
func hasProjectLabelFilter() filters.KeyValuePair {
|
||||
return filters.Arg("label", api.ProjectLabel)
|
||||
}
|
||||
|
||||
func hasConfigHashLabel() filters.KeyValuePair {
|
||||
return filters.Arg("label", api.ConfigHashLabel)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user