Fix usage of get container
This commit is contained in:
parent
348cddf8ab
commit
45bedca984
1 changed files with 3 additions and 3 deletions
|
|
@ -89,15 +89,15 @@ class ServerManager:
|
||||||
Creates a container for the backup service
|
Creates a container for the backup service
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
self._backup_container = self._client.containers.run(
|
self._client.containers.run(
|
||||||
"itzg/mc-backup",
|
"itzg/mc-backup",
|
||||||
name=f"{self._name}-Backup",
|
name=f"{self._name}-Backup",
|
||||||
environment={"INITIAL_DELAY": "0m", "BACKUP_INTERVAL": "30m"},
|
environment={"INITIAL_DELAY": "30m", "BACKUP_INTERVAL": "30m"},
|
||||||
volumes={
|
volumes={
|
||||||
args.root: {"bind": "/data", "mode": "ro"},
|
args.root: {"bind": "/data", "mode": "ro"},
|
||||||
args.backup: {"bind": "/backups", "mode": "rw"},
|
args.backup: {"bind": "/backups", "mode": "rw"},
|
||||||
},
|
},
|
||||||
network=f"container:{self._name}",
|
network_mode=f"container:{self._name}",
|
||||||
detach=True,
|
detach=True,
|
||||||
)
|
)
|
||||||
self._backup_container = self._get_container(f"{self._name}-Backup")
|
self._backup_container = self._get_container(f"{self._name}-Backup")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue