fix: Changed docker#reload to restart and not remove containers
* Possibly fixes issues with fail2ban
This commit is contained in:
parent
0445a4cef8
commit
ce77c0cf7d
1 changed files with 4 additions and 2 deletions
|
|
@ -15,6 +15,8 @@ class DockerService:
|
|||
|
||||
def reload(self, compose_path: Path):
|
||||
os.chdir(compose_path.parent)
|
||||
self._client.compose.ps()
|
||||
self._client.compose.down(remove_orphans=True)
|
||||
# TODO: Check if container needs to be reloaded from scratch
|
||||
# if len(self._client.compose.ps()) > 0:
|
||||
# self._client.compose.restart()
|
||||
# return
|
||||
self._client.compose.up(detach=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue