Don't allow oneoff containers

This commit is contained in:
Einar Forselv 2019-04-17 19:15:58 +02:00
parent 268a945af8
commit 15a0952355
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class RunningContainers:
self.backup_process_container = container self.backup_process_container = container
# Detect containers beloging to the current compose setup # Detect containers beloging to the current compose setup
if container.project_name == self.this_container.project_name: if container.project_name == self.this_container.project_name and not container.is_oneoff:
if container.id != self.this_container.id: if container.id != self.this_container.id:
self.containers.append(container) self.containers.append(container)