Skip to content

Commit

Permalink
Bug fix for starting docker service
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Sep 3, 2024
1 parent 1c41b42 commit 17b939c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
"""
Add docker cidr subnet
Add address_pools column to services_docker
Revision ID: 98c1ebde0079
Revises: d24d6760fda4
Create Date: 2024-08-30 20:33:47.996994+00:00
Create Date: 2024-09-03 20:33:47.996994+00:00
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '98c1ebde0079'
down_revision = 'd24d6760fda4'
branch_labels = None
Expand Down
3 changes: 3 additions & 0 deletions src/middlewared/middlewared/plugins/docker/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ async def do_update(self, job, data):
if config['pool'] != old_config['pool']:
job.set_progress(60, 'Applying requested configuration')
await self.middleware.call('docker.setup.status_change')
elif config['pool'] and config['address_pools'] != old_config['address_pools']:
job.set_progress(60, 'Starting docker')
await self.middleware.call('service.start', 'docker')

if not old_config['nvidia'] and config['nvidia']:
await (
Expand Down

0 comments on commit 17b939c

Please sign in to comment.