This commit is contained in:
Einar Forselv 2019-12-08 01:14:57 +01:00
parent 2bbd329047
commit fa1c982bf5
2 changed files with 1 additions and 4 deletions

View File

@ -1,8 +1,6 @@
import logging
import os
import docker
from restic_compose_backup.config import Config
from restic_compose_backup import utils
logger = logging.getLogger(__name__)
@ -11,7 +9,6 @@ logger = logging.getLogger(__name__)
def run(image: str = None, command: str = None, volumes: dict = None,
environment: dict = None, labels: dict = None, source_container_id: str = None):
logger.info("Starting backup container")
config = Config()
client = utils.docker_client()
container = client.containers.run(

View File

@ -93,7 +93,7 @@ def backup(config, containers):
"A backup process container is already running. \n"
f"Id: {containers.backup_process_container.id}\n"
f"Name: {containers.backup_process_container.name}\n"
)
)
)
raise RuntimeError("Backup process already running")